Initial project commit

This commit is contained in:
2026-01-08 16:50:20 +00:00
commit f0c5a8b267
29596 changed files with 4861782 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
using System;
using UnityEditor;
namespace Unity.PlasticSCM.Editor
{
internal static class Execute
{
internal static void WhenEditorIsReady(Action action)
{
if (PlasticApp.IsUnitTesting)
{
action();
return;
}
EditorApplication.update += RunOnceWhenEditorIsReady;
void RunOnceWhenEditorIsReady()
{
// Calls action when the editor is ready (not updating or compiling)
if (EditorApplication.isUpdating ||
EditorApplication.isCompiling)
{
return;
}
EditorApplication.update -= RunOnceWhenEditorIsReady;
action();
}
}
}
}