Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

VisualElement.ClearClassList

Declaration

public void ClearClassList();

Description

Removes all classes from the class list of this element. AddToClassList

This method might cause unexpected results for built-in Unity elements, since they might rely on classes to be present in their list to function.