The Unity documentation it indicates that all public variables are made available in the inspector for direct editing. While this is handy, it is also dangerous. This article will cover a few things regarding public variables, and how to avoid them in Unity.
Archive for January 15, 2013
Particular Problems with Public Variables in Unity
Category: Coding, Napkin Western, Tips and Tricks, Unity |
Tags: Access Modifiers, Bugs, C#, Code, Coding, Debugging, Fixes, Good Practice, Information, Inspector, Know-How, Programming, Tips, Unity, Variables
Avoiding Long Compile Times
Long compile times are a real chore when it comes to testing things. It is especially cumbersome when all you are doing is making small edits resulting in 2 seconds worth of editing, and 2 minutes waiting for compiling.
Category: Coding, Napkin Western, Tips and Tricks |
Tags: Code, Compile, Compiling, Debugging, Problem Solving, Shader, Shaders, Testing, Unity
The Importance of Class and Object Oriented Programming
While class is certainly important to have in real life, it is equally important to have while programming. Taking advantage of an Object Oriented Programming method (or OOP method) may very well be one of the most important higher concepts to learn and understand. This article helps cover what OOP is, its benefits, and how to use it.
Category: Coding, Tips and Tricks, Unity |
Tags: Code, Coding, Good Practice, Information, Know-How, Management, Object Oriented, OOP, Professional Code, Programming, Tips