A Practical Guide To Editor Scripting in Unity - Part 2: Attributes

When you are first starting out with editor scripting in Unity, the best thing to starting playing with is the inspector. Being one of the things we interact with the most as Unity developers, it is quite beneficial to be able to change it and generally control it. Lucky for us it is the simplest part of the editor to extend and edit, so even if you are not keen about going very far with coding the editor in Unity, you should at least acquaint yourself with the inspector part of it....

February 22, 2022

A Practical Guide To Editor Scripting in Unity - Part 1: Introduction

Game development is a lengthy and highly complicated process that can take months of a developers life for even a small project, therefore any thing that helps improve the workflow and speedup the process is very welcome. Now while modern game engines try to cater to the needs of developers and make their lives easier, there is always space for improvement, especially given the specific needs of each project. Luckily for users of the Unity3D game engine, there exists an easy to use and powerful editor API that allows the creation of basically anything you want in regards to working with the Unity editor UI, be it simple extensions or full-blown editor windows and custom tools that interact with your game....

February 22, 2022

Poor Man's Code Generation

After fixing the performance problems of the Visual Item Database, I decided to start dealing with a very annoying problem that has haunted me was for as long as ‘Categories’ have existed, which is the fact that in order to add or remove a category from the database you have to jump into code and add things in a relatively large number of places, which is something you don’t want to have for a tool that is supposed to be used by designers a lot, and when you factor in the fact that this process will probably be done more than once, you never really want to have it....

June 22, 2016

Performance Critical Editor Tools and Serialized Objects

Of all the awesome features in Unity, I find the ability to script the editor and make it do what you want using almost the same tools and API that the original developers used to make it one of the best features available to developers using Unity. Almost anything you can think of has been done using editor programming, from simple tools to complete editor overhauls, and I too have got my hands dirty with it....

March 30, 2016