MouseUpEvent
This event is sent when a mouse button is released.
Read time 3 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: MouseEventBase<MouseUpEvent>
- Implements: IDisposable, IMouseEvent
public class MouseUpEvent : MouseEventBase<MouseUpEvent>, IDisposable, IMouseEvent
Remarks
The mouse up event is sent to a visual element when a mouse button is released inside the element. A MouseUpEvent uses the default mouse event propagation path: it trickles down, bubbles up and can be cancelled. Disabled elements won't receive this event by default.
Constructors
Constructor | Description |
|---|---|
| MouseUpEvent() | 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. |
Static Methods
Method | Description |
|---|---|
| GetPooled | 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 |