DragEnterEvent
Use the DragEnterEvent class to manage events that occur when dragging enters an element or one of its descendants. The DragEnterEvent does not trickle down and does not bubble up.
Read time 2 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: DragAndDropEventBase<DragEnterEvent>
- Implements: IDisposable, IMouseEvent, IDragAndDropEvent
public class DragEnterEvent : DragAndDropEventBase<DragEnterEvent>, IDisposable, IMouseEvent, IDragAndDropEvent
Constructors
Constructor | Description |
|---|---|
| DragEnterEvent() | Constructor. Avoid renewing events. Instead, use GetPooled() to get an event from a pool of reusable events. |
Methods
Method | Description |
|---|---|
| Init | Resets the event members to their initial values. |