Fun with Exposed Variables in Unity
At first I wasn’t thrilled about public variables being exposed in Unity’s editor – it seemed to be a bit dangerous, burying variable within GUI elements. Reminded me too much of hunting through Flash MovieClips for code snippets. And if you’re not careful, you will get burned. For example, public int exposedInt = 100; at the top of your class rather than assigning the variable within the constructor can cause considerable... Read More
