{!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 Modal | App UI | 0.5.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Modal

    The Modal Popup class.

    Inheritance
    object
    Popup
    Popup<Modal>
    Modal
    Inherited Members
    Popup<Modal>.shown
    Popup<Modal>.dismissed
    Popup<Modal>.SetKeyboardDismiss(bool)
    Popup<Modal>.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 Modal : Popup<Modal>

    Properties

    Name Description
    fullscreenMode

    Set the fullscreen mode for this Modal.

    See ModalFullScreenMode values for more info.

    Methods

    Name Description
    Build(VisualElement, VisualElement)

    Build a new Modal component.

    GetFocusableElement()

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

    The default value is `null`.

    SetFullScreenMode(ModalFullScreenMode)

    Set a new value for fullscreenMode property.

    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)