Class StylingUtility
Provides utility methods around styling.
Namespace: Unity.Properties.UI
Syntax
public static class StylingUtility
Methods
AlignInspectorLabelWidth(VisualElement)
Dynamically computes and sets the width of Label elements so that they stay properly aligned when indented with Foldout elements.
Declaration
public static void AlignInspectorLabelWidth(VisualElement root)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | root | The target element |
Remarks
This will effectively inline the width and the minWidth value of every VisualElement under the provided root.