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

    Show / Hide Table of Contents

    Struct ApplicationContext

    The ApplicationContext provides the current context of the application. GetContext(VisualElement) to retrieve the context at a specific place in the visual tree.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.AppUI.Core
    Assembly: solution.dll
    Syntax
    public struct ApplicationContext

    Constructors

    Name Description
    ApplicationContext(ApplicationContext, ContextProvider)

    Construct an ApplicationContext based on an other one, and overrides from a given ContextProvider.

    ApplicationContext(Panel)

    Construct an ApplicationContext based on an Panel instance.

    Properties

    Name Description
    closestProvider

    The closest ContextProvider instance which overrides the current context.

    lang

    The current language. This parameter is only used if the Unity Localization package is installed and set up correctly.

    panel

    The application instance which wraps the whole UI. You must have a single Panel instance inside your runtime app.

    preferredTooltipPlacement

    The preferred placement of the tooltip.

    scale

    The current scale of the UI. Possible values are "medium" or "large".

    theme

    The current theme of the UI. Possible values are "dark" or "light".

    tooltipDelayMs

    The delay before the tooltip is displayed.

    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)