- Home /
Question by
EnigmaticCrow · Apr 18, 2019 at 09:06 PM ·
c#editor-scriptingcompiler
Automatically running a script when compiling
Is there the possibility to execute a method of a script every time Unity compiles/starts the game? As far as I understand Unity, it can't run in Start() or Awake() because it needs the UnityEditor namespace and needs to save the changes.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612195735im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Accessing a game script from an editor script. C# 0 Answers
Generic CustomEditor 1 Answer
Select which component is dragged into a public variable. 0 Answers