Introduction
Action Icons allows you to associate icons with actions in the Unity Input System. Icons are displayed using Labels.
#
SetupFollow these steps to begin using Action Icons in your project:
- Install the Input System package in Package Manager
- Set the "Active Input Handling" to either "Input System Package (New)" or "Both" in the Player settings.
- Create your "Input Actions" (Project right-click: Create > Input Actions)
- Add an Interface Manager (Heirarchy right-click: Create > GDTK > Interface Manager)
- Create a Input Manager (Project right-click: Create > Tools > GDTK > Settings > Unity New Input System)
- Assign your Input Actions to the newly created Input Manager
- Assign the Input Manager to the Interface Manager
- (Optional) Add a "Action Icons" component to the Interface Manager to select your controller maps
#
UsageThe Label control handles all usage of Action Icons. Select "Use Action Icons" on any Label, supply your "Input Actions" reference and use {action:ActionName} to display any actions you wish.