기술 자료

Unity Engine

Unity Engine

As<TDerived>()

Converts this callback to a more constrained callback type.
읽는 시간 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.