- Home /
Editor Window Update
Hi, I have probably simple question. I would like to update my script in editor window (editor plugin), but Update() event is called just if window is visible. Is there way how to update script in background too ? The script is doing something automatic and I don't need to have visible still. Thanks.
Answer by Waz · Aug 14, 2011 at 03:37 PM
You need Update delegate on EditorApplication, not Update function. You probably also want InitializeOnLoad attribute. Google will get you there from those.
Or here: http://answers.unity3d.com/questions/39313/how-do-i-get-a-callback-every-frame-in-edit-mode.html
Your answer
![](https://koobas.hobune.stream/wayback/20220612180453im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Color custom editor window ? 2 Answers
Editor scene preview window 0 Answers
Add EditorUI elements when a button is pressed 0 Answers
How to optimize a custom editor ? 3 Answers