文档

Unity Engine

Unity Engine

EventBase<T>

Generic base class for events, implementing event pooling and automatic registration to the event type system.
阅读时间2 分钟最后更新于 1 个月前

Definition

public abstract class EventBase<T> : EventBase, IDisposable where T : EventBase<T>, new()

Properties

Property

Description

eventTypeIdRetrieves the type ID for this event instance.

Methods

Method

Description

DisposeImplementation of IDispose.
InitResets all event members to their initial values.

Static Methods

Method

Description

GetPooledGets 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
Dispose()
to release them.
TypeIdRetrieves the type ID for this event instance.

Inheritance