{!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} Class Tray | App UI | 0.6.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Tray

    The Tray Popup class.

    Inheritance
    object
    Popup
    Popup<Tray>
    Tray
    Inherited Members
    Popup<Tray>.shown
    Popup<Tray>.dismissed
    Popup<Tray>.SetKeyboardDismiss(bool)
    Popup<Tray>.SetLastFocusedElement(Focusable)
    Popup.keyboardDismissEnabled
    Popup.view
    Popup.targetParent
    Popup.contentView
    Popup.context
    Popup.Dismiss()
    Popup.Dismiss(DismissType)
    Popup.Show()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Unity.AppUI.UI
    Assembly: solution.dll
    Syntax
    public sealed class Tray : Popup<Tray>

    Methods

    Name Description
    AnimateViewIn()

    Start the animation for this popup.

    AnimateViewOut(DismissType)

    Start the hide animation for this popup.

    Build(VisualElement, VisualElement)

    Build a new Tray component.

    GetFocusableElement()

    Returns the element that will be focused when the view will become visible.

    The default value is `null`.

    InvokeDismissedEventHandlers(DismissType)

    Called when the popup has been dismissed. This method will invoke any handlers attached to the dismissed event.

    SetExpandable(bool)

    Set to true to make the tray expandable.

    SetHandleVisible(bool)

    Set the handle visibility.

    SetMargin(float)

    Set the margin of the tray.

    SetPosition(TrayPosition)

    Build a new Tray component.

    SetSize(float)

    Set the size of the tray.

    SetTransitionDuration(int)

    Set the transition duration.

    ShouldAnimate()

    Implement this method to know if the popup should call AnimateViewIn() and AnimateViewOut(DismissType) methods or not.

    ShouldDismiss(DismissType)

    Dismiss the Popup.

    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)