Chapter 12. Editor Extensions

In this chapter, we will cover the following topics:

  • An editor extension to allow pickup type (and parameters) to be changed at design time via a custom Inspector UI
  • An editor extension to add 100 randomly located copies of a prefab with one menu click
  • A progress bar to display proportion completed of Editor extension processing
  • An editor extension to have an object-creator GameObject, with buttons to instantiate different pickups at cross-hair object location in scene

Introduction

One aspect of game development in general (and inventories as our particular examples in this chapter) is the distinction about when we undertake an activity. Run-time is when the game is running (and when all our software and UI choices take ...

Get Unity 5.x Cookbook 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.