Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

VisualElement.Hierarchy.RemoveAt

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void RemoveAt(int index);

Description

Remove the child element located at this position from this element's contentContainer

Removes the element from both the child list and the layout list. If the index is out of range, an exception will be thrown. Trying to remove an element during a layout pass will trigger an invalid operation exception to prevent unintended consequences.