Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


As<TDerived>()

Converts this callback to a more constrained callback type.
Read time 1 minuteLast updated 12 days ago

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.