- Home /
Editor script that is running in background
Hello :),
What is the best way to create an editor script that is always running in background in the editor and that has an update method called?
Thank you very much, Rgds
BigBulle
Answer by Waz · Jul 28, 2011 at 12:22 PM
Attach to this delegate:
http://unity3d.com/support/documentation/ScriptReference/EditorApplication-update.html
see:
http://answers.unity3d.com/questions/39313/how-do-i-get-a-callback-every-frame-in-edit-mode.html
Thank you very much The attribute [InitializeOnLoad] is also interesting to start the background process when unity starts
Nice find on the second link, the first one was a great example of 'thorough documentation' ;)
I knew both existed because I trod that exact path before (starting from the... yes... 'thorough documentation').
Well, actually it doesn't work after starting Unity... It just work if I change my scripts which enforce Unity to reimport them and call again the OnEnable....
Your answer
