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

Speech Input Handler Code

Hi Everyone,
I am having problems coming up with a way to have multiple gameojects appear by using the same keyword. What I would like is a piece of code that would do the following for me. Check to see if a gameobject is active and if it is then open another gameobject. If both of them are then open a third and so on...
What I have works great for just opening one gameoject and then closing on voice command. Any help would be a huge!!

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

public class HideGameObject : MonoBehaviour
{
public GameObject ParentLayer;

public void ShowParentLayer()
{
    ParentLayer.SetActive(true);
}

public void HideParentLayer()
{
    ParentLayer.SetActive(false);
}

}

Tagged:
Sign In or Register to comment.