Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RegisterCallbackAttribute(Type, CallbackOptions)

Initializes a new instance of the RegisterCallbackAttribute class.
Read time 1 minuteLast updated 13 days 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.