Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

Voice to show/hide cursor?

I'm using the HL with a model built in layers, like an onion. I was able to borrow the cursor from Origami tutorial along with associated scripts to move the model and show/hide each of five layers, using voice commands. But the same script doesn't show / hide the cursor. The cursor is in root of hierarchy in Unity 5 as in the Origami setup. Can anyone suggest what needs to change to show/hide the cursor?

The same script works for layers, but not for the cursor:

Code is:

keywords.Add("Show cursor", () =>
{
this.BroadcastMessage("OnShowCursor");
});

    keywords.Add("Hide cursor", () =>
    {
        this.BroadcastMessage("OnHideCursor");
    });

To show/hide I'm using:

public void OnShowCursor()
{
rend = GetComponent();
rend.enabled = true;
}

public void OnHideCursor()
{
    rend = GetComponent<Renderer>();
    rend.enabled = false;
}

Carol LaFayette
Harold L. Adams Interdisciplinary Professor, Department of Visualization
Director, Institute for Applied Creativity
SEAD network
Texas A&M University

Best Answers

Answers

Sign In or Register to comment.