C# Класс UIKeyBinding, TheUnseen

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
action Action
keyCode KeyCode,
modifier Modifier,

Открытые методы

Метод Описание
OnSubmit ( ) : void

Ignore the KeyUp message if the input field "ate" it.

Start ( ) : void

If we're bound to an input field, subscribe to its Submit notification.

Update ( ) : void

Process the key binding.

Приватные методы

Метод Описание
IsModifierActive ( ) : bool

Convenience function that checks whether the required modifier key is active.

Описание методов

OnSubmit() публичный Метод

Ignore the KeyUp message if the input field "ate" it.
public OnSubmit ( ) : void
Результат void

Start() публичный Метод

If we're bound to an input field, subscribe to its Submit notification.
public Start ( ) : void
Результат void

Update() публичный Метод

Process the key binding.
public Update ( ) : void
Результат void

Описание свойств

action публичное свойство

Action to take with the specified key.
public Action action
Результат Action

keyCode публичное свойство

Key that will trigger the binding.
public KeyCode, keyCode
Результат KeyCode,

modifier публичное свойство

Modifier key that must be active in order for the binding to trigger.
public Modifier, modifier
Результат Modifier,