- Home /
"Restart " C# script that has [ExecuteInEditMode] attribute and Start() function.
Hi, guys! Hope you can help me. Situation:
I have a MonoBehaviour C# script /w public variables and some stuff in Start () function that uses those variables;
I have added [ExecuteInEditMode] attribute;
Script is used for generating a custom mesh;
Question: Can I, and if so - how, "restart" this script after editing variables exposed in the Inspector? Will Unity do this automagically? I have not actually checked it out myself, for I'm away from my project atm. Thanks in advance!
Your answer
Follow this Question
Related Questions
Initialising List array for use in a custom Editor 1 Answer
ReImport in c# of GameObjects only for Scene Objects, not assets? 1 Answer
Distribute terrain in zones 3 Answers
How do I solve a BuildAssetBundles Compilation Error that only occurs in the Editor? 1 Answer
Min Attribute Not Working on Custom Property Drawer 0 Answers