This version of Unity is unsupported.

VisualElement.Hierarchy.Remove

Declaration

public void Remove(UIElements.VisualElement child);

Description

Removes this child from the hierarchy.

This method will first calculate the index of the child, followed by calling the RemoveAt method to remove it from the hierarchy. If the element is null or not present in the hierarchy, an exception will be thrown.