ApplyCurrentTheme Method

ApplyCurrentTheme(VisualElement)

Pass a custom root element to this method to use the appropiate USS variables and class names for Unity's current skin.

Declaration
public static void ApplyCurrentTheme(VisualElement rootElement)
Parameters
VisualElement rootElement

The custom root element that will contain the variables.