docs.unity3d.com
    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.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.AppUI.UI
    Syntax
    public struct PositionResult

    Properties

    finalPlacement

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

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

    left

    The X Position from the left, in pixels.

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

    marginLeft

    The left margin, in pixels.

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

    marginTop

    The top margin, in pixels.

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

    tipBottom

    The USS bottom value for the tip element.

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

    tipLeft

    The USS left value for the tip element.

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

    tipRight

    The USS right value for the tip element.

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

    tipTop

    The USS top value for the tip element.

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

    top

    The Y Position from the top, in pixels.

    Declaration
    public float top { get; set; }
    Property Value
    Type Description
    Single
    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