Game Development Reference
In-Depth Information
Basically, we were getting the last selection object by using
target
, but if we change it
to
targets
or
serializedObject
, it will return all the objects that have been selec-
ted.
Tip
To make the multi-object editing work properly with all the properties in
WaypointsCon-
tainerEditor
, we might have to change the way the code is structured. For example, we
probably need to change the
GetWaypointAtIndex()
function to return
Waypo-
int[]
for each
WaypointsContainer
scripts.