Edytuj

Udostępnij za pośrednictwem


DisablePointersExample Class

Definition

This example demonstrates how to turn pointers on and off by specifying custom behaviors.

public ref class DisablePointersExample : UnityEngine::MonoBehaviour
[UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/DisablePointersExample")]
[UnityEngine.RequireComponent(typeof(Microsoft.MixedReality.Toolkit.UI.PointerBehaviorControls))]
public class DisablePointersExample : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/DisablePointersExample")>]
[<UnityEngine.RequireComponent(typeof(Microsoft.MixedReality.Toolkit.UI.PointerBehaviorControls))>]
type DisablePointersExample = class
    inherit MonoBehaviour
Public Class DisablePointersExample
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
DisablePointersExample
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.RequireComponentAttribute

Constructors

DisablePointersExample()

Fields

ControllerRayToggle
GazeToggle
GrabToggle
HandRayToggle
PokeToggle

Methods

ResetExample()

Applies to