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 Know-How
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
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
Important Notes on Touch Input in Unity
There are a few things that you will want to keep in mind when working with touch in Unity. Mobile devices pass click events with their touch events, platform dependent compilation, rotations are a special type all their own, sometimes Unity hands back one thing when you need another, collisions are odd, and much more. This is the first of many posts on the quirks of Unity.
Category: Projects, Tips and Tricks, Unity |
Tags: Information, Input, Know-How, Oddities, Preprocessor Directive, Problems, Quirks, State Machine, States, Strangeness, Touch, Touch Input, Unity