PanelChangedEventBase<T>
Abstract base class for events notifying of a panel change.
Read time 2 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: EventBase<T>
- Implements: IDisposable, IPanelChangedEvent
public abstract class PanelChangedEventBase<T> : EventBase<T>, IDisposable, IPanelChangedEvent where T : PanelChangedEventBase<T>, new()
Properties
Property | Description |
|---|---|
| destinationPanel | In the case of AttachToPanelEvent, the panel to which the event target element is now attached. In the case of DetachFromPanelEvent, the panel to which the event target element will be attached. |
| originPanel | In the case of AttachToPanelEvent, the panel to which the event target element was attached. In the case of DetachFromPanelEvent, the panel from which the event target element is detached. |
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 |