EventBase<T>
Generic base class for events, implementing event pooling and automatic registration to the event type system.
読み終わるまでの所要時間 2 分最終更新 1ヶ月前
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: EventBase
- Implements: IDisposable
public abstract class EventBase<T> : EventBase, IDisposable where T : EventBase<T>, new()
Properties
Property | Description |
|---|---|
| eventTypeId | Retrieves the type ID for this event instance. |
Methods
Method | Description |
|---|---|
| Dispose | Implementation of IDispose. |
| Init | Resets all event members to their initial values. |
Static Methods
Method | Description |
|---|---|
| GetPooled | Gets an event from the event pool. Use this function instead of creating new events. Events obtained using this method need to be released back to the pool. You can use |
| TypeId | Retrieves the type ID for this event instance. |