Use a custom Input Handler
The brain offers three human input modes:
Unity's Input Manager (old)
UI
Custom
The custom
mode, as the name implies, allows you to use a custom input handler. For this, you will need to:
Create a custom class that derives from the InputHandler abstract class.
Implement its abstract methods using the input system API.
Add the component created (1.) somewhere in the scene.
Go to CharacterBrain and change the Human input type to "Custom".
Drag & drop the input handler component (3.) into the input handler field (CharacterBrain).
Creating the class
Plain and simple C#.
For example, this is the default UnityInputHandler (Unity's Input Manager) that comes with the asset.
Last updated