MouseLeaveEvent
Event sent when the mouse pointer exits an element and all its descendent elements. The event trickles down but does not bubble up.
Read time 2 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: MouseEventBase<MouseLeaveEvent>
- Implements: IDisposable, IMouseEvent
public class MouseLeaveEvent : MouseEventBase<MouseLeaveEvent>, IDisposable, IMouseEvent
Constructors
Constructor | Description |
|---|---|
| MouseLeaveEvent() | Constructor. Avoid creating new event instances. Instead, use GetPooled() to get an instance from a pool of reusable event instances. |
Methods
Method | Description |
|---|---|
| Init | Resets the event members to their initial values. |