Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

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.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. 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. And always feel free to hit us up on Twitter @MxdRealityDev.

Using Voice Commands

I am trying to turn off a layer using HoloToolKit keywordmanager and I have it partially working. The parent layer (Plane) is turning off but the children layers are not (Buttons).
This is the script that I am using...
Any help would be appreciated!

using System.Collections;
using System.Collections.Generic;
using HoloToolkit.Unity;
using UnityEngine;

public class HideLayer : MonoBehaviour
public void showHidePlane()
if(GetComponent().enabled == true)
GetComponent().enabled = false;
GetComponent().enabled = true;

Best Answer


  • Hey,
    are you using the current HoloToolkit? It labels the Keyword-Manager as obsolete. It would be better to use the SpeechInputSource- and SpeechInputHandler-Scripts.

    When I try out your code. I get an error at "GetComponent()" as there is no type specified. Usually you would use
    GetComponent<"Type you are looking for">()

    Where do you check the layers? Maybe you can place the buttons as children of your plane. In that case you can just toggle the Plane and the children follow suit.

    Something like:

    public void HideLayer()
  • holonutholonut
    Accepted Answer

    Thank you for your response! I have started another thread that I hope you can provide input in.
    It is based off of your initial feedback of eliminating keywordmanager script...


Sign In or Register to comment.