Advanced Topics - Gizmos, Automated Testing, and More

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 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 ...

Get Unity 2021 Cookbook - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.