Select your preferred scripting language. All code snippets will be displayed in this language.
enumeration
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
CloseTypes of UnityGUI input and processing events.
See Also: Event.type, Event, GUI Scripting Guide.
MouseDown | Mouse button was pressed. |
MouseUp | Mouse button was released. |
MouseMove | Mouse was moved (Editor views only). |
MouseDrag | Mouse was dragged. |
KeyDown | A keyboard key was pressed. |
KeyUp | A keyboard key was released. |
ScrollWheel | The scroll wheel was moved. |
Repaint | A repaint event. One is sent every frame. |
Layout | A layout event. |
DragUpdated | Editor only: drag & drop operation updated. |
DragPerform | Editor only: drag & drop operation performed. |
DragExited | Editor only: drag & drop operation exited. |
Ignore | Event should be ignored. |
Used | Already processed event. |
ValidateCommand | Validates a special command (e.g. copy & paste). |
ExecuteCommand | Execute a special command (eg. copy & paste). |
ContextClick | User has right-clicked (or control-clicked on the mac). |
MouseEnterWindow | Mouse entered a window (Editor views only). |
MouseLeaveWindow | Mouse left a window (Editor views only). |