docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct PositionResult

    The position result data structure returned in ComputePosition(VisualElement, VisualElement, Panel, PositionOptions) utility method.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public struct PositionResult

    Properties

    finalPlacement

    The computed placement, that may differ from the desired one.

    Declaration
    public PopoverPlacement finalPlacement { readonly get; set; }
    Property Value
    Type Description
    PopoverPlacement

    left

    The X Position from the left, in pixels.

    Declaration
    public float left { readonly get; set; }
    Property Value
    Type Description
    float

    marginLeft

    The left margin, in pixels.

    Declaration
    public float marginLeft { readonly get; set; }
    Property Value
    Type Description
    float

    marginTop

    The top margin, in pixels.

    Declaration
    public float marginTop { readonly get; set; }
    Property Value
    Type Description
    float

    tipBottom

    The USS bottom value for the tip element.

    Declaration
    public float tipBottom { readonly get; set; }
    Property Value
    Type Description
    float

    tipLeft

    The USS left value for the tip element.

    Declaration
    public float tipLeft { readonly get; set; }
    Property Value
    Type Description
    float

    tipRight

    The USS right value for the tip element.

    Declaration
    public float tipRight { readonly get; set; }
    Property Value
    Type Description
    float

    tipTop

    The USS top value for the tip element.

    Declaration
    public float tipTop { readonly get; set; }
    Property Value
    Type Description
    float

    top

    The Y Position from the top, in pixels.

    Declaration
    public float top { readonly get; set; }
    Property Value
    Type Description
    float
    In This Article
    Back to top
    Copyright © 2025 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)