Question by
bfops · Apr 17, 2018 at 07:48 PM ·
editoreditor-scripting
Running code once on editor start?
Seems simple enough, but I can't figure out how to do it. [InitializeOnLoad]
seems to run after every recompilation so I'm hosed if I want to do something relatively expensive once when the project is opened.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612160959im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to change the text of EditorGUILayout.TextField 2 Answers
Custom Editor Textarea cursor position 0 Answers
Editor script modify scene, but changes dont want to be saved 1 Answer
How to change Texture in editor 0 Answers
Editor script: Variable created on gameObject in editor set to missing on runtime 0 Answers