The event that has both global and local position
This event bubbles by default

C# | Visual Basic | Visual C++ |
public class MouseEvent : InputEvent
Public Class MouseEvent _ Inherits InputEvent
public ref class MouseEvent : public InputEvent

All Members | Constructors | Methods | Properties | Fields | |
Icon | Member | Description |
---|---|---|
![]() | MouseEvent(String) |
Constructor
|
![]() | MouseEvent(String, Object) |
Constructor
|
![]() | MouseEvent(String, Boolean) |
Constructor
|
![]() | MouseEvent(String, Boolean, Boolean) |
Constructor
|
![]() | Alt |
Is Alt pressed
(Inherited from InputEvent.) |
![]() | Bubbles |
The flag used by systems that support event bubbling
false by default
(Inherited from Event.) |
![]() | ButtonDown |
True if the mouse button is down
|
![]() | Cancel()()()() | (Inherited from InputEvent.) |
![]() | Cancelable |
The flag that indicates if the event could be canceled or default prevented
Using this flag, the developer can cancel/default prevent some behaviour inside the event dispatcher from the 'outside'
(Inherited from Event.) |
![]() | CancelAndStopPropagation()()()() |
Stops the propagation
Used by systems that support event bubbling
Cancels the further bubbling AND cancels the event
(Inherited from Event.) |
![]() | Canceled |
The flag that indicates if the event has been canceled
Using this flag, the developer can cancel some default behaviour inside the event dispatcher from the 'outside'
After the event has been canceled, it won't be dispatched to any of the consequent listeners
(Inherited from Event.) |
![]() ![]() | CLICK |
Constant
|
![]() | Clone()()()() |
Makes a shallow copy of the event
(Inherited from Event.) |
![]() | Control |
Is Control pressed
(Inherited from InputEvent.) |
![]() | CurrentEvent |
Current Unity event
(Inherited from InputEvent.) |
![]() | CurrentTarget |
Current target
Used by systems that support event bubbling
to keep track of the current object processing the event
(Inherited from Event.) |
![]() | DefaultPrevented |
The flag that indicates if the event has been default prevented
Using this flag, the developer can prevent a default action of the event dispatcher
This mechanism is used to expose a part of the decision making from event dispatcher to the 'outside'
(Inherited from Event.) |
![]() ![]() | DOUBLE_CLICK |
Constant
|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType()()()() | Gets the type of the current instance. (Inherited from Object.) |
![]() | GlobalPosition |
The global (screen) position
|
![]() | LocalPosition |
The local position (used by GUI)
|
![]() | MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | MIDDLE_CLICK |
Constant
|
![]() ![]() | MIDDLE_DOUBLE_CLICK |
Constant
|
![]() ![]() | MIDDLE_MOUSE_DOWN |
Constant
|
![]() ![]() | MIDDLE_MOUSE_UP |
Constant
|
![]() | MiddleButtonDown |
True if the mouse button is down
|
![]() ![]() | MOUSE_DOWN |
Constant
|
![]() ![]() | MOUSE_DOWN_OUTSIDE |
Constant
|
![]() ![]() | MOUSE_DRAG |
Constant
|
![]() ![]() | MOUSE_LEAVE |
Constant
|
![]() ![]() | MOUSE_MOVE |
Constant
|
![]() ![]() | MOUSE_OUT |
Constant
|
![]() ![]() | MOUSE_OVER |
Constant
|
![]() ![]() | MOUSE_UP |
Constant
|
![]() ![]() | MOUSE_WHEEL |
Constant
|
![]() ![]() | MOUSE_WHEEL_OUTSIDE |
Constant
|
![]() | Phase |
Event phase (Capture/Target/Bubbling)
Used by systems that support event bubbling
to keep track of the current bubbling phase
(Inherited from Event.) |
![]() | PreventDefault()()()() |
Prevents the default action of the dispatcher following the dispatching
(Inherited from Event.) |
![]() | RelatedObject |
Related object
|
![]() ![]() | RIGHT_CLICK |
Constant
|
![]() ![]() | RIGHT_DOUBLE_CLICK |
Constant
|
![]() ![]() | RIGHT_MOUSE_DOWN |
Constant
|
![]() ![]() | RIGHT_MOUSE_UP |
Constant
|
![]() | RightButtonDown |
True if the mouse button is down
|
![]() ![]() | ROLL_OUT |
Constant
|
![]() ![]() | ROLL_OVER |
Constant
|
![]() | Shift |
Is Shift pressed
(Inherited from InputEvent.) |
![]() | StopPropagation()()()() |
Stops the propagation
Used by systems that support event bubbling
Cancels the further bubbling but does not cancel the event
(Inherited from Event.) |
![]() | Target |
Event target (or originator)
By default, the object that dispatched the event
It may be set to any object (not necesarily the one that dispatched it)
If not set explicitelly, the target is set by the system to default
(Inherited from Event.) |
![]() | ToString()()()() | (Overrides InputEvent.ToString()()()().) |
![]() | Type |
The event type
Used for notifiying listeners subscribed to specific event type
(Inherited from Event.) |

Coded by Danko Kozar

Object | |||
![]() | Event | ||
![]() | InputEvent | ||
![]() | MouseEvent |