- Home /
Question by
angi · Jan 19, 2011 at 02:53 PM ·
propertiespublic
public properties don't update
I've got a script with public properties. Normally those properties should change if I change their values in my script, but it doesn't update. The values are still like 30min ago... I tried to restart, refresh, save etc..
Comment
Do they change at runtime, but not affect the values displayed in the Editor Inspector?
Best Answer
Answer by yoyo · Jan 19, 2011 at 05:52 PM
Values in your script are just defaults for the variables that show in the inspector. Once you attach a script to an object, it gets its own copy of the values, which don't change when you update your script.
If you want to reset to defaults you can use the little drop down menu on the cogwheel thingy on the right of the Inspector and select "Reset".