Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsRegistered(VisualElement)

Returns whether this group is registered for the given element.
Read time 1 minuteLast updated 10 days ago

Definition

public bool IsRegistered(VisualElement element)

Parameters

The element to find the group on.

Returns

Type

Description

boolTrue 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
false
.
If the EventCallbackGroup.Register method was called multiple times for this element, this method returns
true
unless the EventCallbackGroup.Unregister method was called at least the same number of times.