Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RemoveFromClassList

Removes a class from the class list of the element.
Read time 1 minuteLast updated 6 days ago

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.