Input Handling
A tow hitch connector requires a component that inherits from "BaseTruckInputProvider" for handling player input handiling.
The package provides you with 2 pre-made components.

TruckInputProviderOld uses Unity's old InputManager.

The tow hitch connector tries to find BaseTruckInputProvider only upon startup. Meaning that if "Connection Type" was not set to "PlayerInput" at first, it won't be used during runtime at all, even if you add a component youself later.
TruckInputProviderNew uses Unity's new InputSystem, which supports both gamepad and keyboard.

To modify the bindings, navigate to CustomVehicleController/VehicleController/Scripts/Input

In order to create your own input provider, simply create a class that inherits from "BaseTruckInputProvider" and call the methods of the base class upon user action.


Last updated