Editar

Partilhar via


ToolTipSpawner Class

Definition

Add to any Object to spawn ToolTips on tap or on focus, according to preference Applies its follow settings to the spawned ToolTip's ToolTipConnector component

public ref class ToolTipSpawner : Microsoft::MixedReality::Toolkit::UI::PrefabSpawner
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/ToolTipSpawner")]
public class ToolTipSpawner : Microsoft.MixedReality.Toolkit.UI.PrefabSpawner
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/ToolTipSpawner")>]
type ToolTipSpawner = class
    inherit PrefabSpawner
Public Class ToolTipSpawner
Inherits PrefabSpawner
Inheritance
UnityEngine.MonoBehaviour
ToolTipSpawner
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

ToolTipSpawner()

Fields

prefab (Inherited from PrefabSpawner)

Properties

FocusEnabled

Is focus enabled for this Component?

(Inherited from BaseFocusHandler)
Focusers

The list of IMixedRealityPointers that are currently focused on this GameObject

(Inherited from BaseFocusHandler)
HasFocus

Does this object currently have focus by any IMixedRealityPointer?

(Inherited from BaseFocusHandler)

Methods

HandleTap() (Inherited from PrefabSpawner)
OnBeforeFocusChange(FocusEventData)

Focus event that is raised before the focus is actually changed.

(Inherited from BaseFocusHandler)
OnFocusChanged(FocusEventData)

Focus event that is raised when the focused object is changed.

(Inherited from BaseFocusHandler)
OnFocusEnter(FocusEventData)

The Focus Enter event is raised on this GameObject whenever a IMixedRealityPointer's focus enters this GameObject's Collider.

(Inherited from PrefabSpawner)
OnFocusExit(FocusEventData)

The Focus Exit event is raised on this GameObject whenever a IMixedRealityPointer's focus leaves this GameObject's Collider.

(Inherited from PrefabSpawner)
SpawnableActivated(GameObject)

Explicit Interface Implementations

IMixedRealityInputHandler.OnInputDown(InputEventData)

Input Down updates from Interactions, Keys, or any other simple input.

(Inherited from PrefabSpawner)
IMixedRealityInputHandler.OnInputUp(InputEventData)

Input Up updates from Interactions, Keys, or any other simple input.

(Inherited from PrefabSpawner)
IMixedRealityInputHandler<Single>.OnInputChanged(InputEventData<Single>)

Raised input event updates from the type of input specified in the interface handler implementation.

(Inherited from PrefabSpawner)

Applies to