Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Unregister(TElement)

Removes all group event handlers from the given element.
Read time 1 minuteLast updated 10 days ago

Definition

Unregister(T)

public void Unregister(TElement element)

Parameters

element

T
The element to remove the group from. If this callback group was never registered, nothing happens.

Remarks

This method is usually much faster than unregistering the corresponding callbacks individually.
If any callback contained in this group is unregistered individually prior to calling this method, an undefined behavior will result.