Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EventCallbackDefinition

An object that can be registered on VisualElements to react to any event type.
Read time 1 minuteLast updated 7 days ago

Definition

public readonly struct EventCallbackDefinition

Remarks

The same callback instance can be registered on multiple different elements, resulting in effective memory sharing. If the element instance is needed by the callback code, an optional argument can be used to provide it.

Methods

Method

Description

RegisterAdds this callback's event handler to the given element.
UnregisterRemoves this callback from the given element.