- Home /
Reset script variable values automatically?
This is getting annoying- I edit a script in Unitron, I save it, and then I have to select the object (or objects, if several different prefabs share the script) it's attached to, click on the name of the script in the inspector, and select "reset" to get the variables to update.
I find myself having to do this a lot more than I would have to edit the value of a variable in the inspector. Is there an editor script or something to make it automatically reset all scripts every time you run the game?
Answer by MorphVGX · Apr 06, 2012 at 08:21 PM
If you change the variable name, it will automatically reset ;)
Your answer
Follow this Question
Related Questions
Custom Inspector resets after Unity restarts 0 Answers
inspector isnt showing scripts 2 Answers
Making enum visible in the Inspector via a drop down list 2 Answers
Inspector cannot find script instance 1 Answer
Editing "settings" in script? 1 Answer