I’m wondering if theres a general proper way of doing this. I want to see the variables, what they are doing, how they are changing whilst the program is running.
Any variables not marked as “static” or “private” are automatically exposed to the editor. While the game is running, you can select any GameObject in the scene and look at the variables of any scripts attached to that GameObject.
As Jacob Williams said, you could set as public the variables you want to see in the inspector… or you could create a class which takes that variables and shows these through GUILabel on the screen.
If you want to see private variables, set the inspector to debug mode.
–Eric
I didnt realise it worked like that. Thanks everyone.