Vehicle changer is used to switch between the vehicles. It supports instant switching or character enter/exit type switching, depending on the Character Based
option.
Auto Find Vehicles
option. Vehicles that have Settings > Register With Vehicle Changer
set to true
will get added to the list.ChangeVehicle
(Input Setup) button will switch to the next vehicle in Vehicles
list. When the last vehicle is reached it will wrap around and start from the first vehicle again.Character Based
switching is enabled the only way to change the vehicle is to exit the current one (some kind of 1st or 3d person character controller is assumed), walk to the next vehicle and press the ChangeVehicle
(Input Setup) button.Character Object
is assigned. This is a GameObject containing the character controller. The asset does not care which character controller is used as it will simply deactivate the character controller GameObject and give the control to the vehicle that is being entered.Enter Exit Tag
, which is EnterExitPoint
by default. Check the demo scene vehicles for the example, e.g. the Niva has the LeftEnterExitPoint only, which means that the character can exit only from the left (driver) side. Duplicate it and move it to the right door position to make entering from the passenger side possible too.