文档

Unity Engine

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.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void AddToClassList(string className)

Parameters

className

The name of the class to add to the list.