docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ShowTooltip

    ShowTooltip(ITooltip, bool, float, ITooltipPlacement, Action)

    Show a Tooltip. Calling ShowTooltip on an ITooltip that was just shown will update its placement and timing

    Declaration
    void ShowTooltip(ITooltip tooltip, bool persistent = false, float duration = 0, ITooltipPlacement placement = null, Action becameVisible = null)
    Parameters
    Type Name Description
    ITooltip tooltip

    The tooltip to show

    bool persistent

    Whether the tooltip should stay visible regardless of raycasts

    float duration

    If the tooltip is shown persistently, and duration is less than 0, hide after the duration, in seconds. If duration greater than 0, placement is updated but timing is not affected. If duration is exactly 0, tooltip stays visible until explicitly hidden

    ITooltipPlacement placement

    (Optional) The ITooltipPlacement object used to place the tooltip. If no placement is specified, we assume the ITooltip is a component and use its own Transform

    Action becameVisible

    (Optional) Called as soon as the tooltip becomes visible

    In This Article
    Back to top
    Copyright © 2024 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)