Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EventType

Suggest a change

Success!

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.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual

Description

Types of UnityGUI input and processing events.

Variables

MouseDownMouse button was pressed.
MouseUpMouse button was released.
MouseMoveMouse was moved (editor views only).
MouseDragMouse was dragged.
KeyDownA keyboard key was pressed.
KeyUpA keyboard key was released.
ScrollWheelThe scroll wheel was moved.
RepaintA repaint event. One is sent every frame.
LayoutA layout event.
DragUpdatedEditor only: drag & drop operation updated.
DragPerformEditor only: drag & drop operation performed.
DragExitedEditor only: drag & drop operation exited.
Ignore Event should be ignored.
UsedAlready processed event.
ValidateCommandValidates a special command (e.g. copy & paste).
ExecuteCommandExecute a special command (eg. copy & paste).
ContextClickUser has right-clicked (or control-clicked on the mac).