Learn / Documentation / Key To Action
Scripting

Description

The Key To Action listens for the set input key or virtual button and, when triggered, executes an UIAction
See Also: UIAction

Component Details

Gesture Listener
  • Manual – Link to the manual page for this component

  • YouTube – Link to the quick video tutorial for this component

  • Debug Mode – Enables relevant debug messages to be printed to the console

  • Input Mode – Allows for this Key to Action component to react to keys or virtual buttons. See InputData, InputMode

  • Key Code – The key code that will trigger the execution of the UIAction (if InputMode.KeyCode)

  • Virtual Button – The virtual button name that will trigger the execution of the UIAction (if InputMode.VirtualButton)

  • Alternate Input – This enables the check for alternate inputs for the target component. If the InputMode is set to None, this option does nothing. If the InputMode is set to KeyCode, this option enables the setting for an alternate button (KeyCode) to register a click/touch. If the InputMode is set to VirtualButton, this option enabled the setting for an alternate virtual button (button name set in the InputManager) to register a click/touch.

  • Alternate Key Code – The key code alternate that will trigger the execution of the UIAction (if InputMode.KeyCode)

    Your Content Goes Here

  • Alternate Virtual Button – The virtual button name alternate that will trigger the execution of the UIAction (if InputMode.VirtualButton)

  • Actions UIAction executed when this Key To Action is triggered. It can play a sound, play/stop a Particle System, trigger an Animation, send one or more Game Events and invoke one or more methods via the Unity Event