hi
I use C# scripting with unity but the list of exposed variables doesn’t show up in the inspector window. is that normal??
thank you
hi
I use C# scripting with unity but the list of exposed variables doesn’t show up in the inspector window. is that normal??
thank you
if it doesn’t show up they are either
If you declare variable like this :
int a;
C# assume that is private by default. And he can not be seen from outside of class.
But if you declare variable like this
public int a;
Then he can be seen outside of class.
And try use this:
public static int a;
That means that this a variable are public and their value can be changed from outside of class and stored .
I forgot to make my variables public thank you
Just in case someone else finds this, I’ve found that if a script is silently failing, eg. its class name and file name don’t match, then its public variables won’t be be exported to the inspector.