docs.unity3d.com
    Show / Hide Table of Contents

    Struct PositionOptions

    Options to pass as argument to 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 PositionOptions

    Constructors

    PositionOptions(PopoverPlacement, Int32, Int32, Boolean, Boolean)

    Constructor.

    Declaration
    public PositionOptions(PopoverPlacement preferredPlacement = PopoverPlacement.Top, int offset = 0, int crossOffset = 0, bool shouldFlip = true, bool crossSnap = true)
    Parameters
    Type Name Description
    PopoverPlacement preferredPlacement

    The preferred placement for the popover.

    Int32 offset

    The offset from the anchor element.

    Int32 crossOffset

    The cross offset from the anchor element.

    Boolean shouldFlip

    Whether the popover should flip if it doesn't fit in the viewport.

    Boolean crossSnap

    Whether the popover should snap not to go outside the viewport.

    Properties

    crossOffset

    The cross offset from the anchor element.

    Declaration
    public int crossOffset { get; set; }
    Property Value
    Type Description
    Int32

    crossSnap

    Whether the popover should snap not to go outside the viewport.

    Declaration
    public bool crossSnap { get; set; }
    Property Value
    Type Description
    Boolean

    favoritePlacement

    The preferred placement for the popover.

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

    offset

    The offset from the anchor element.

    Declaration
    public int offset { get; set; }
    Property Value
    Type Description
    Int32

    shouldFlip

    Whether the popover should flip if it doesn't fit in the viewport.

    Declaration
    public bool shouldFlip { get; set; }
    Property Value
    Type Description
    Boolean
    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