docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum SafeArea.AlignmentMode

    Directions to align the inset area to center the UI. Relative to Reference Orientation.

    Namespace: UnityEngine.UI
    Assembly: UnityEngine.UI.dll
    Syntax
    [Flags]
    public enum SafeArea.AlignmentMode

    Fields

    Name Description
    CenterHorizontally

    Center the inset area horizontally by mirroring the larger horizontal inset onto the opposite edge.

    CenterVertically

    Center the inset area vertically by mirroring the larger vertical inset onto the opposite edge.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)