EnableInClassList
Enables or disables the class with the given name.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
EnableInClassList(string, bool)
Enables or disables the class with the given name.
public void EnableInClassList(string className, bool enable)
Parameters
Remarks
If enable is true, EnableInClassList adds the class name to the class list. If enable is false, EnableInClassList removes the class name from the class list.
This method has no effect if class name is null or empty.
EnableInClassList(UniqueStyleString, bool)
Enables or disables the class with the given name.
public void EnableInClassList(UniqueStyleString className, bool enable)
Parameters
The name of the class to enable or disable.
A boolean flag that adds or removes the class name from the class list. If true, EnableInClassList adds the class name to the class list. If false, EnableInClassList removes the class name from the class list.
Remarks
If enable is true, EnableInClassList adds the class name to the class list. If enable is false, EnableInClassList removes the class name from the class list.
This method has no effect if class name is null or empty.