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

VisualElement.AddToClassList

Declaration

public void AddToClassList(string className);

Parameters

className The name of the class to add to the list.

Description

Adds a class to the class list of the element in order to assign styles from USS. Note the class name is case-sensitive.