文档

Unity Engine

Unity Engine

RemoveFromClassList

Removes a class from the class list of the element.
阅读时间1 分钟最后更新于 1 个月前

Definition

RemoveFromClassList(string)

Removes a class from the class list of the element.
public void RemoveFromClassList(string className)

Parameters

className

The name of the class to remove to the list.

Remarks

This method has no effect if class name is null or empty.

RemoveFromClassList(UniqueStyleString)

Removes a class from the class list of the element.
public void RemoveFromClassList(UniqueStyleString className)

Parameters

The name of the class to remove to the list.

Remarks

This method has no effect if class name is null or empty.