Game Development Reference
In-Depth Information
Now, we have finished this step. We can also play around by clicking the
-
button to re-
move the waypoint or delete it from the
Hierarchy
view. This will automatically update
the name of the waypoint and reorder each one.
Tip
To create a new waypoint alternatively, we can do it by pressing
Crtl
+
D
(in Windows) or
command
+
D
(on Mac) on the last one in the
Hierarchy
view. This will also update the
name and reorder the waypoint; this happens by setting the
EditorApplica-
tion.hierarchyWindowChanged()
function.
For more details, visit
http://docs.unity3d.com/Documentation/ScriptReference/
We can also change the waypoint radius, show/hide the gizmos, make it random, move the
waypoint object around to serve what we need, or even add or remove the waypoint ob-
jects to fit our level.