PointerCaptureEventBase<T>
Base class for pointer capture events and mouse capture events.
Read time 2 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: EventBase<T>
- Implements: IDisposable, IPointerCaptureEvent
public abstract class PointerCaptureEventBase<T> : EventBase<T>, IDisposable, IPointerCaptureEvent where T : PointerCaptureEventBase<T>, new()
Properties
Property | Description |
|---|---|
| pointerId | Identifies the pointer that sends the event. |
| relatedTarget | For PointerCaptureEvent and MouseCaptureEvent, returns the VisualElement that loses the pointer capture, if any. For PointerCaptureOutEvent and MouseCaptureOutEvent, returns the VisualElement that captures the pointer. |
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 |