IsRegistered(VisualElement)
Returns whether this group is registered for the given element.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public bool IsRegistered(VisualElement element)
Parameters
The element to find the group on.
Returns
Type | Description |
|---|---|
| bool | True if this group was registered for this element and not subsequently unregistered. |
Remarks
If the EventCallbackGroup.Register method was never called for this element, this method is guaranteed to return .
falseIf the EventCallbackGroup.Register method was called multiple times for this element, this method returns unless the EventCallbackGroup.Unregister method was called at least the same number of times.
true