UnityGUIイベント
Events correspond to user input (key presses, mouse actions), or are UnityGUI layout or rendering events. For each event OnGUI is called in the scripts; so OnGUI is potentially called multiple times per frame. Event.current corresponds to "current" event inside OnGUI call. See Also: GUI Scripting Guide, EventType.
| current | The current event that's being processed right now. |
| alt | 「Alt/Option」キーが押されたかどうか (Read Only) |
| button | どのボタンが押されたか返します |
| capsLock | 「CapsLock」キーが押されたかどうか (Read Only) |
| character | 押したキーの文字列を返します |
| clickCount | 同じ位置で何回マウスクリックをされているかを返す |
| command | 「Command/Windows」キーが押されたかどうか (Read Only) |
| commandName | ExecuteCommandまたはValidateCommandイベントの名前を返します |
| control | 「Control」キーが押されたかどうか (Read Only) |
| delta | 最後のイベントに比べて、マウスの相対的な動きを返す |
| functionKey | 「Function」キーが押されているかどうか (Read Only) |
| isKey | キーボードのイベントかどうか (Read Only) |
| isMouse | マウスのイベントかどうか (Read Only) |
| keyCode | キーコードイベントのための生のキーコード |
| modifiers | どの修飾子キーが押されているか |
| mousePosition | マウス位置 |
| numeric | 数字キーが押されているかどうか (Read Only) |
| shift | 「Shift」キーが押されたかどうか (Read Only) |
| type | イベントのタイプ |
| GetTypeForControl | 与えられたコントロールID に対するフィルタリングされたイベントを取得します |
| Use | イベントを使用済とします |
| GetEventCount | イベントキューに保持されている現在のイベント番号が返却されます |
| KeyboardEvent | キーボードイベントを作成します |
| PopEvent | イベントシステムから次のキューにあるイベントを取得する |