Documentation

Unity Engine

Download Unity

Unity Engine

Register(VisualElement)

Adds this callback's event handler to the given element.
Read time 1 minuteLast updated 2 months ago

Definition

public void Register(VisualElement element)

Parameters

The element to add the callback to.

Remarks

If the event handler is already registered for the same phase (either TrickleDown or BubbleUp), this method has no effect.
Refer to the Handle event callbacks and value changes manual page for more information and examples.
This method allows this callback instance to be shared by multiple elements, resulting in a reduced memory footprint.