Game Development Reference
In-Depth Information
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 re-
moving from the scene to make it easier for us to edit.
Search WWH ::




Custom Search