Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddToClassList(string)

Adds a class to the class list of the element in order to assign styles from USS. Note the class name is case-sensitive.
Read time 1 minuteLast updated 6 days ago

Definition

public void AddToClassList(string className)

Parameters

className

The name of the class to add to the list.