I have global variables in a unityscript file. When I put this .js file to a gameobject, the variables from that .js file appear in the Inspector.
Example:
var code: Code
var a : int = 100;
function Start() {
}
Variables 'code' and 'a' will display in the Inspector with their values.
But when I change their values, for example for 'a' variable I set a different value or some variable I give to comments or delete it, the variables will be still displaying in the Inspector without any change. How can I remove or change them?
Example: (I've changed previous code)
//var code: Code
var a : int = 50;
function Start() {
}
In the Inspectore I will still have 'code' variable and value for 'a' will be 100.