GetVehicleIndex
Description
Gets the index of a vehicle GameObject.
Useful to get the list index of a specific vehicle.
Declaration
Parameters
Name | Description |
---|---|
vehicle | The root GameObject of a traffic vehicle. |
Returns
int - the list index of the vehicle (-1 = error)
Example
Last updated