Register(TElement)
Adds this callback's event handler to the given element.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
Register(T)
public void Register(TElement element)
Parameters
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.