Class StylingUtility | Properties UI | 1.4.4-preview.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class StylingUtility

    Provides utility methods around styling.

    Inheritance
    Object
    StylingUtility
    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023