日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class ToolTip

    Class for Tooltip object Creates a floating tooltip that is attached to an object and moves to stay in view as object rotates with respect to the view.

    Inheritance
    Object
    ToolTip
    SpeechConfirmationTooltip
    Namespace: Microsoft.MixedReality.Toolkit.UI
    Assembly: cs.temp.dll.dll
    Syntax
    public class ToolTip : MonoBehaviour

    Properties

    Anchor

    getter/setter for ameObject that the line and text are attached to

    Declaration
    public GameObject Anchor { get; set; }
    Property Value
    Type Description
    GameObject

    AnchorPosition

    point where ToolTip connector is attached

    Declaration
    public Vector3 AnchorPosition { get; set; }
    Property Value
    Type Description
    Vector3

    AttachPointPosition

    point where ToolTip is attached

    Declaration
    public Vector3 AttachPointPosition { get; set; }
    Property Value
    Type Description
    Vector3

    ContentParentTransform

    Transform of object to which ToolTip is attached

    Declaration
    public Transform ContentParentTransform { get; }
    Property Value
    Type Description
    Transform

    ContentScale

    The scale of all the content (label, backgrounds, etc.)

    Declaration
    public float ContentScale { get; set; }
    Property Value
    Type Description
    Single

    FontSize

    The font size of the tooltip.

    Declaration
    public int FontSize { get; set; }
    Property Value
    Type Description
    Int32

    GroupTipState

    Display the state of a group of tooltips.

    Declaration
    public DisplayMode GroupTipState { get; set; }
    Property Value
    Type Description
    DisplayMode

    HasFocus

    does the ToolTip have focus.

    Declaration
    public virtual bool HasFocus { get; }
    Property Value
    Type Description
    Boolean

    IsOn

    is ToolTip active and displaying

    Declaration
    public bool IsOn { get; }
    Property Value
    Type Description
    Boolean

    LocalContentOffset

    The offset of the background (x / y / z)

    Declaration
    public Vector3 LocalContentOffset { get; }
    Property Value
    Type Description
    Vector3

    LocalContentSize

    getter/setter for size of tooltip.

    Declaration
    public Vector2 LocalContentSize { get; }
    Property Value
    Type Description
    Vector2

    MasterTipState

    Display the state of the master tooltip.

    Declaration
    public DisplayMode MasterTipState { get; set; }
    Property Value
    Type Description
    DisplayMode

    Pivot

    Pivot point that text will rotate around as well as the point where the Line will be rendered to.

    Declaration
    public GameObject Pivot { get; }
    Property Value
    Type Description
    GameObject

    PivotPosition

    point about which ToolTip pivots to face camera

    Declaration
    public Vector3 PivotPosition { get; set; }
    Property Value
    Type Description
    Vector3

    PivotType

    Declaration
    public ToolTipAttachPoint PivotType { get; set; }
    Property Value
    Type Description
    ToolTipAttachPoint

    ShowBackground

    Show the opaque background of tooltip.

    Declaration
    public bool ShowBackground { get; set; }
    Property Value
    Type Description
    Boolean

    ShowConnector

    Show the connecting stem between the tooltip and its parent GameObject.

    Declaration
    public bool ShowConnector { get; set; }
    Property Value
    Type Description
    Boolean

    ShowHighlight

    Shows white trim around edge of tooltip.

    Declaration
    public bool ShowHighlight { get; set; }
    Property Value
    Type Description
    Boolean

    TipState

    The display the state of the tooltip.

    Declaration
    public DisplayMode TipState { get; set; }
    Property Value
    Type Description
    DisplayMode

    ToolTipText

    Text for the ToolTip to display

    Declaration
    public string ToolTipText { get; set; }
    Property Value
    Type Description
    String

    Methods

    EnforceHierarchy()

    Declaration
    protected virtual bool EnforceHierarchy()
    Returns
    Type Description
    Boolean

    GetTextMeshLocalScale(TextMesh)

    Declaration
    public static Vector3 GetTextMeshLocalScale(TextMesh textMesh)
    Parameters
    Type Name Description
    TextMesh textMesh
    Returns
    Type Description
    Vector3

    OnEnable()

    virtual functions

    Declaration
    protected virtual void OnEnable()

    RefreshLocalContent()

    Declaration
    protected virtual void RefreshLocalContent()

    ResolveTipState(DisplayMode, DisplayMode, DisplayMode, Boolean)

    Declaration
    public static bool ResolveTipState(DisplayMode masterTipState, DisplayMode groupTipState, DisplayMode tipState, bool hasFocus)
    Parameters
    Type Name Description
    DisplayMode masterTipState
    DisplayMode groupTipState
    DisplayMode tipState
    Boolean hasFocus
    Returns
    Type Description
    Boolean

    Update()

    Declaration
    protected virtual void Update()
    Back to top Generated by DocFX