An editor-side Update() equivalent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void OnEnable() { | |
EditorApplication.update += OnUpdate; | |
} | |
private void OnDisable() { | |
EditorApplication.update -= OnUpdate; | |
} | |
private void OnUpdate() { | |
// do things | |
// force loop update so that inputs aren't required | |
EditorApplication.QueuePlayerLoopUpdate(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment