Creating Custom Inspectors in Unity
Throughout this Unity tutorial, we'll learn the essentials of using custom inspectors in Unity to give us greater control over how we work with our game components. Software required: Unity 4.5, Monodevelop.
What you'll learn
Throughout this Unity tutorial, we'll learn the essentials of using custom inspectors in Unity to give us greater control over how we work with our game components. We'll start with the basics of how to draw GUI controls in the inspector. We'll then move on to learning skills such as how to track changes made to our components, support undoing, multi-editing, and many more. By the end of this Unity training you'll have the knowledge you need for much greater control over your game's components and how you configure and interact with them as a designer. Software required: Unity 4.5, Monodevelop.
Table of contents
- Creating an Empty Custom Inspector 9m
- Anatomy of a Custom Inspector 5m
- Drawing Our First Control 6m
- Drawing Numeric Fields 10m
- Handling Changed Values 4m
- Undoing Changes 7m
- Using Serialized Objects and Properties 6m
- Exposing Private and Protected Fields 9m
- Looping Through Properties 6m
- Supporting Multi-editing 10m
- Manipulating Serializedproperty Values 9m
- Additional Control Types and Guicontent 7m
- Adding Icons with Guicontent 10m
- Adding Controls and Tooltips Without a Custom Inspector 5m