Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EventInterestAttribute

Use this constructor when the affected method uses only specific event types that can easily be determined at compile time. Multiple EventInterestAttribute can be used on the same method to add more type interests.
Read time 1 minuteLast updated 6 days ago

Definition

EventInterestAttribute(Type[])

Use this constructor when the affected method uses only specific event types that can easily be determined at compile time. Multiple EventInterestAttribute can be used on the same method to add more type interests.
public EventInterestAttribute(params Type[] eventTypes)

Parameters

eventTypes

The affected method is guaranteed to be invoked if the incoming event has any of the specified types in this argument.

EventInterestAttribute(EventInterestOptions)

Use this constructor when the affected method treats events in a general, non type-specific manner. See EventInterestOptions for more information on the available argument values.
public EventInterestAttribute(EventInterestOptions interests)

Parameters

The affected method is guaranteed to be invoked if the incoming event has any of the specified types in this argument.