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

    Show / Hide Table of Contents

    Class Tooltip

    The tooltip popup type.

    Inheritance
    object
    Popup
    Popup<Tooltip>
    AnchorPopup<Tooltip>
    Tooltip
    Inherited Members
    AnchorPopup<Tooltip>.placement
    AnchorPopup<Tooltip>.currentPlacement
    AnchorPopup<Tooltip>.offset
    AnchorPopup<Tooltip>.crossOffset
    AnchorPopup<Tooltip>.containerPadding
    AnchorPopup<Tooltip>.shouldFlip
    AnchorPopup<Tooltip>.arrowVisible
    AnchorPopup<Tooltip>.outsideClickDismissEnabled
    AnchorPopup<Tooltip>.outsideScrollEnabled
    AnchorPopup<Tooltip>.outsideClickStrategy
    AnchorPopup<Tooltip>.anchor
    AnchorPopup<Tooltip>.SetPlacement(PopoverPlacement)
    AnchorPopup<Tooltip>.SetOffset(int)
    AnchorPopup<Tooltip>.SetCrossOffset(int)
    AnchorPopup<Tooltip>.SetContainerPadding(int)
    AnchorPopup<Tooltip>.SetShouldFlip(bool)
    AnchorPopup<Tooltip>.SetArrowVisible(bool)
    AnchorPopup<Tooltip>.SetAnchor(VisualElement)
    AnchorPopup<Tooltip>.SetOutsideClickDismiss(bool)
    AnchorPopup<Tooltip>.SetOutsideScrollEnabled(bool)
    AnchorPopup<Tooltip>.SetOutsideClickStrategy(OutsideClickStrategy)
    Popup<Tooltip>.shown
    Popup<Tooltip>.dismissed
    Popup<Tooltip>.SetKeyboardDismiss(bool)
    Popup<Tooltip>.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 Tooltip : AnchorPopup<Tooltip>

    Fields

    Name Description
    defaultPlacement

    The default placement of the tooltip.

    Properties

    Name Description
    template

    The template to display inside the popup.

    text

    The text to display inside the popup.

    Methods

    Name Description
    AnimateViewIn()

    Start the animation for this popup.

    AnimateViewOut(DismissType)

    Start the hide animation for this popup.

    Build(VisualElement)

    Build a new Tooltip. In the Application element, only one Tooltip is create and moved at the right place when hovering others UI elements. The Tooltip is handled by the TooltipManipulator.

    FindSuitableParent(VisualElement)

    Find the parent VisualElement where the popup will be added. This is usually one of the layers from the Panel root UI element.

    SetContent(VisualElement)

    Set the content of the tooltip.

    SetText(string)

    Set a new value for the text property.

    ShouldAnimate()

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

    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)