This script adds a key or button trigger to a Unity UI Selectable. More...
Public Attributes | |
KeyCode | key = KeyCode.None |
string | buttonName = string.Empty |
bool | anyKeyOrButton = false |
bool | skipIfBeingClickedBySubmit = true |
bool | simulateButtonClick = true |
float | simulateButtonDownDuration = 0.1f |
Static Public Attributes | |
static bool | monitorInput = true |
Set false to prevent all UIButtonKeyTrigger components from listening for input. | |
Protected Member Functions | |
virtual void | Awake () |
virtual void | OnEnable () |
virtual void | OnDisable () |
void | Update () |
virtual bool | IsBeingClickedBySubmit () |
virtual void | Click () |
IEnumerator | SimulateButtonClick () |
Properties | |
UnityEngine.UI.Selectable | selectable [get, set] |
UnityEngine.EventSystems.EventSystem | eventSystem [get, set] |
Properties inherited from PixelCrushers.IEventSystemUser |
This script adds a key or button trigger to a Unity UI Selectable.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotected |
|
inlineprotected |
bool PixelCrushers.UIButtonKeyTrigger.anyKeyOrButton = false |
string PixelCrushers.UIButtonKeyTrigger.buttonName = string.Empty |
KeyCode PixelCrushers.UIButtonKeyTrigger.key = KeyCode.None |
|
static |
Set false to prevent all UIButtonKeyTrigger components from listening for input.
bool PixelCrushers.UIButtonKeyTrigger.simulateButtonClick = true |
float PixelCrushers.UIButtonKeyTrigger.simulateButtonDownDuration = 0.1f |
bool PixelCrushers.UIButtonKeyTrigger.skipIfBeingClickedBySubmit = true |
|
getset |
Implements PixelCrushers.IEventSystemUser.
|
getsetprotected |