Class MouseLeaveWindowEvent
Event sent when the mouse pointer exits a window. The event is cancellable, it does not trickle down, and it does not bubble up.
Inheritance
MouseLeaveWindowEvent
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public class MouseLeaveWindowEvent : MouseEventBase<MouseLeaveWindowEvent>, IMouseEvent, IMouseEventInternal
Constructors
MouseLeaveWindowEvent()
Constructor. Avoid creating new event instances. Instead, use GetPooled() to get an instance from a pool of reusable event instances.
Declaration
public MouseLeaveWindowEvent()
Methods
GetPooled(Event)
Gets an event from the event pool and initializes it with the given values. Use this function instead of creating new events. Events obtained using this method need to be released back to the pool. You can use Dispose()
to release them.
Declaration
public static MouseLeaveWindowEvent GetPooled(Event systemEvent)
Parameters
Type | Name | Description |
---|---|---|
Event | systemEvent | An IMGUI MouseLeaveWindow event. |
Returns
Type | Description |
---|---|
MouseLeaveWindowEvent | An initialized event. |
Init()
Resets the event members to their initial values.
Declaration
protected override void Init()
Overrides
UnityEngine.UIElements.MouseEventBase<UnityEngine.UIElements.MouseLeaveWindowEvent>.Init()
PostDispatch(IPanel)
Declaration
protected override void PostDispatch(IPanel panel)
Parameters
Type | Name | Description |
---|---|---|
IPanel | panel |
Overrides
UnityEngine.UIElements.MouseEventBase<UnityEngine.UIElements.MouseLeaveWindowEvent>.PostDispatch(UnityEngine.UIElements.IPanel)