This chapter will put together four sets of advanced recipes:
- Gizmos
- Saving and loading game data
- Automated testing
- An introduction to Unity Python
Let's take a look at each in this introduction!
Gizmos
Gizmos are another kind of Unity editor customization. Gizmos are visual aids for game designers that are provided in the Scene window. They can be useful as setup aids (to help us know what we are doing) or for debugging (understanding why objects aren't behaving as expected).
Gizmos are not drawn through Editor scripts, but as part of the Monobehaviour class, so they only work for GameObjects in the current scene. Gizmo drawing is usually performed in two methods:
- OnDrawGizmos(): This is executed every frame or editor window repaint, for every GameObject in the Hierarchy window.
- OnDrawGizmosSelect(): This is executed...