Register(VisualElement)
Adds this callback's event handler to the given element.
읽는 시간 1분최근 업데이트: 23일 전
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
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.