MouseCaptureEventBase<T>
Event sent when the handler capturing the mouse changes.
Read time 2 minutesLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: PointerCaptureEventBase<T>
- Implements: IDisposable, IPointerCaptureEvent, IMouseCaptureEvent
public abstract class MouseCaptureEventBase<T> : PointerCaptureEventBase<T>, IDisposable, IPointerCaptureEvent, IMouseCaptureEvent where T : MouseCaptureEventBase<T>, new()
Remarks
Refer to the Capture events manual page for more information and examples.
Properties
Property | Description |
|---|---|
| relatedTarget | In the case of a MouseCaptureEvent, this property is the IEventHandler that loses the capture. In the case of a MouseCaptureOutEvent, this property is the IEventHandler that gains the capture. |
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 |