ドキュメント

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.