We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

    Show / Hide Table of Contents

    Class DisablePointersExample

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

    Inheritance
    Object
    DisablePointersExample
    Namespace: Microsoft.MixedReality.Toolkit.Examples.Demos
    Assembly: cs.temp.dll.dll
    Syntax
    public class DisablePointersExample : MonoBehaviour

    Fields

    ControllerRayToggle

    Declaration
    public Interactable ControllerRayToggle
    Field Value
    Type Description
    Interactable

    GazeToggle

    Declaration
    public Interactable GazeToggle
    Field Value
    Type Description
    Interactable

    GrabToggle

    Declaration
    public Interactable GrabToggle
    Field Value
    Type Description
    Interactable

    HandRayToggle

    Declaration
    public Interactable HandRayToggle
    Field Value
    Type Description
    Interactable

    PokeToggle

    Declaration
    public Interactable PokeToggle
    Field Value
    Type Description
    Interactable

    Methods

    ResetExample()

    Declaration
    public void ResetExample()

    SetControllerRayEnabled(Boolean)

    Declaration
    public void SetControllerRayEnabled(bool isEnabled)
    Parameters
    Type Name Description
    Boolean isEnabled

    SetFingerOnly()

    Declaration
    public void SetFingerOnly()

    SetGazeEnabled(Boolean)

    Declaration
    public void SetGazeEnabled(bool isEnabled)
    Parameters
    Type Name Description
    Boolean isEnabled

    SetGrabEnabled(Boolean)

    Declaration
    public void SetGrabEnabled(bool isEnabled)
    Parameters
    Type Name Description
    Boolean isEnabled

    SetHandRayEnabled(Boolean)

    Declaration
    public void SetHandRayEnabled(bool isEnabled)
    Parameters
    Type Name Description
    Boolean isEnabled

    SetHoloLens1()

    Declaration
    public void SetHoloLens1()

    SetHoloLens2()

    Declaration
    public void SetHoloLens2()

    SetLeftHandRayEnabled(Boolean)

    Declaration
    public void SetLeftHandRayEnabled(bool isEnabled)
    Parameters
    Type Name Description
    Boolean isEnabled

    SetPokeEnabled(Boolean)

    Declaration
    public void SetPokeEnabled(bool isEnabled)
    Parameters
    Type Name Description
    Boolean isEnabled

    SetRightHandRayEnabled(Boolean)

    Declaration
    public void SetRightHandRayEnabled(bool isEnabled)
    Parameters
    Type Name Description
    Boolean isEnabled

    SetVR()

    Declaration
    public void SetVR()
    Back to top Generated by DocFX