文档

Unity Engine

Unity Engine

As<TDerived>()

Converts this callback to a more constrained callback type.
阅读时间1 分钟最后更新于 1 个月前

Definition

As<T>()

public EventCallbackDefinition<TDerived> As<TDerived>() where TDerived : TElement

Returns

Type

Description

EventCallbackDefinition<T>The same callback but with a more constrained type signature.

Remarks

This allows a callback declared for a base class to be used as part of a callback group alongside other callbacks from a derived class.