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

Same voice command (keyword) for multiple gameobjects using KeywordManager.cs script

chinmaychinmay
edited November 2016 in General

I was trying to give the same keyword to multiple gameobjects using the KeywordManager.cs script but it seems that at a time only one gameobject gets instantiated responding to the desired keyword. Is it possible to simultaneously trigger multiple gameobjects using one voice command?

This is the error that I get:
https://drive.google.com/file/d/0B6LKjPhAnD1sX3FuaEczeDlHcXc/view?usp=sharing

Best Answer

Answers

  • Options

    @HoloSheep said:
    @chinmay

    It sounds like you have instances of the KeywordManager.cs attached to multiple game objects.

    Try instead to move the KeywordManager.cs script to a single root gameObject like a Managers empty gameObject.

    You could then try a Broadcast flavor of the Response and have handlers on each gameobject listen for the broadcast message.

    HTH.

    Yes thats actually what I am doing. Two instances of KeywordManager.cs in two different gameobjects. Let me try your approach. Will keep you posted if it works.

  • Options

    Hey, chinmay@chinmay. how does your work going? I also meet the same questions.

Sign In or Register to comment.