Documentation

Unity Engine

Download Unity

Unity Engine

RegisterCallbackAttribute(Type, CallbackOptions)

Initializes a new instance of the RegisterCallbackAttribute class.
Read time 1 minuteLast updated a month ago

Definition

public RegisterCallbackAttribute(Type eventType, CallbackOptions callbackOptions = CallbackOptions.Default)

Parameters

eventType

Type of event to handle, for example
typeof(PointerDownEvent)
.

callbackOptions

Options that control how the callback is registered.