You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I was wondering if you happen to know if this works in the editor or if it is only for runtime code? Such as, could I used it to perform sequential/timed events within editor scripts?
Thanks,
-MH
The text was updated successfully, but these errors were encountered:
Editor mode is not supported at the moment. This requirement will be added later. In fact, you can implement it yourself, just put the update in the editor's update driver.
e.g.
#if UNITY_EDITOR
[UnityEditor.InitializeOnLoadMethod]
static void InitializeEditor()
{
UnityEditor.EditorApplication.update += () =>
{
if (!Application.isPlaying)
{
unitedUpdate?.Invoke();
if (unitedUpdateOnce != null)
{
var call = unitedUpdateOnce;
unitedUpdateOnce = null;
call();
}
}
};
}
Hello,
I was wondering if you happen to know if this works in the editor or if it is only for runtime code? Such as, could I used it to perform sequential/timed events within editor scripts?
Thanks,
-MH
The text was updated successfully, but these errors were encountered: