PASSWORD RESET

Create Today

Unity – Manage Variables with Attributes

504 0

Organizing your code is essential in any project especially if you’re working in teams. A lot of the code we make spills out into the editor with our variables that should be set by a designer.

Helping them out is also essential so organizing how our variables are displayed in the editor quickly becomes key for a successful project. This is doable with attributes.

Tutor: SpeedTutor
Youtube-channel: SpeedTutor
Twitter: @SpeedTutor
Facebook: @Speedtutoruk
Google Plus: SpeedTutor
Webpage: http://speed-tutor.com/

When you first start working with attributes you quickly realize the benefit but also that you wish for more. Luckily DevDog created Odin which gives you plenty of new attributes, create advanced custom editors and the possibility to almost serialize anything in unity, like lists, dictionaries and creating your custom serializers.