O'Reilly logo

Unity 4 Game Development HOTSHOT by Jate Wittayabundit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a custom editor for the WaypointsContainer script

In this step, we will create the WaypointsContainerEditor script, which will create the custom inspector for our WaypointsContainer component. We will have the Slider bar to limit the minimum and maximum radius of each the waypoint, the Add and Remove waypoint buttons that automatically add and remove the waypoint from the scene, and finally, we will update the name of each waypoint automatically when adding or removing from the scene to make it easier for us to edit.

Prepare for lift off

We will begin by removing the old WaypointsContainer object in the Hierarchy view:

  1. Let's right-click on the WaypointsContainer game object that we created in the previous step and choose Delete to remove ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required