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.

If no BaseTruckInputProvider components are found, TruckInputProviderOld will be added by default

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