Hi!
----------
I've noticed the inspector is not showing the updated values of public variables in a script.
For instance, in my script, the **public** variable *useless* is equal to 66:
public int useless = 66;
- *useless* is defined and its value assigned before the *Start* method of a public class
- script is saved
- Unity has compiled
- No warnings or errors
- It's also a sunny day today
----------
BUT, the inspector, show me this:
![alt text][1]
It's quite annoying since the effective value in-game is 666 and not the updated 66.
If I initialize the variable in the start function everything it's fine but I cannot access and modify quickly public variables using the inspector before hitting play... which is not really useful.
.
I already tried:
- check auto refresh in *edit/preferences/*
- close/open unity and the script editor
- remove and re-attach the script
- reset script preset
- ancient love spells for enchanting modern technology
----------
I don't know if this is actually a Unity issue or just my ignorance regarding Unity, C#, Compilers, and other magical components but I would really appreciate a feedback from this more-helpful-than- Acetylsalicylic-acid community.
----------
Unity Version: 2018.2.3f1 (free, personal)
Script Editor: Microsof Visual Studio (15.8)
OS: Windows
Eyes: brown
----------
[1]: /storage/temp/126404-immagine.png
↧