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

    Show / Hide Table of Contents

    Class VisualElementExtensions

    Extensions for VisualElement class.

    Inheritance
    object
    VisualElementExtensions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.AppUI.UI
    Assembly: solution.dll
    Syntax
    public static class VisualElementExtensions

    Methods

    Name Description
    GetChildren<T>(VisualElement, bool)

    Get child elements of a given type.

    GetContext(VisualElement)

    Get the current application context associated with the current VisualElement object.

    GetContextProvider<T>(VisualElement)

    Find the closest context provider in the hierarchy of a VisualElement.

    GetContext<T>(VisualElement)

    Get the context of a given type in a VisualElement.

    GetPanelSettings(IPanel)

    Get the PanelSettings instance associated to this IPanel, if any.

    GetPreferredTooltipPlacement(VisualElement)

    Get the preferred placement for a VisualElement's Tooltip.

    GetSelfContext<T>(VisualElement)

    Get the context of a given type in a VisualElement if this element is provider of this context.

    GetTooltipTemplate(VisualElement)

    Get the tooltip template for a VisualElement.

    GetWorldBoundingBox(VisualElement)

    Get the world bounding box of a VisualElement.

    IsContextProvider<T>(VisualElement)

    Check if a VisualElement provides a context of a given type.

    ProvideContext<T>(VisualElement, T)

    Make the element provide a context of a given type in a VisualElement.

    RegisterContextChangedCallback<T>(VisualElement, EventCallback<ContextChangedEvent<T>>)

    Register a callback to be invoked when the context of a given type changes in a VisualElement.

    SetPreferredTooltipPlacement(VisualElement, PopoverPlacement)

    Set a preferred Tooltip placement.

    SetTooltipTemplate(VisualElement, VisualElement)

    Set the tooltip template for a VisualElement.

    UnregisterContextChangedCallback<T>(VisualElement, EventCallback<ContextChangedEvent<T>>)

    Unregister a callback to be invoked when the context of a given type changes in a VisualElement.

    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)