Stores native and custom controller presets that can be used in UI.
This scriptable object is responsible for storing controller presets. Xbox, DualSense, and keyboard/mouse controllers are natively supported out of the box, but you can also add custom presets.
This scriptable object is responsible of storing the preset data. Some controllers have a different type of button scheme/layout compared to others. For example, Xbox has ‘B’ on the east side, while DualSense has ‘Circle’. Controller Preset solves this problem by working with IDs instead of mapping, so you can show unique icon or text based on controller and ID value. This feature is mostly used with the ‘Hotkey Event’ component.
To create a new custom preset, you can follow these steps:
* You can call Debug.Log(UnityEngine.InputSystem.Gamepad.current.displayName); at runtime to find the active controller name.
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.