A UnityGUI event.
Events correspond to user input (key presses, mouse actions), or are UnityGUI layout or rendering events.
| type |
The type of event.
|
| mousePosition |
The mouse position.
|
| delta |
The relative movement of the mouse compared to last event.
|
| button |
Which mouse button was pressed.
|
| clickCount |
How many consecutive mouse clicks have we received.
|
| character |
The character typed.
|
| commandName |
The name of an ExecuteCommand or ValidateCommand Event
|
| keyCode |
The raw key code for keyboard events.
|
| shift |
Is Shift held down? (Read Only)
|
| control |
Is Control key held down? (Read Only)
|
| alt |
Is Alt/Option key held down? (Read Only)
|
| command |
Is Command/Windows key held down? (Read Only)
|
| capsLock |
Is Caps Lock on? (Read Only)
|
| numeric |
Is the current keypress on the numeric keyboard? (Read Only)
|
| functionKey |
Is the current keypress a function key? (Read Only)
|
| isKey |
Is this event a keyboard event? (Read Only)
|
| isMouse |
Is this event a mouse event? (Read Only)
|