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.
Tag Archive for Debugging
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