{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method ComputePosition | App UI | 0.5.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ComputePosition

    ComputePosition(VisualElement, VisualElement, Panel, PositionOptions)

    This method will return the possible position of UI element based on a specific context.

    Declaration
    public static PositionResult ComputePosition(VisualElement element, VisualElement anchor, Panel panel, PositionOptions options)
    Parameters
    Type Name Description
    VisualElement element

    The element which needs to be positioned

    VisualElement anchor

    The element used as an anchor for the element.

    Panel panel

    The panel containing elements.

    PositionOptions options

    The options used to compute the position.

    Returns
    Type Description
    PositionResult

    The computed position.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    The provided favoritePlacement value is invalid.

    In This Article
    Back to top
    Copyright © 2023 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)