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.

Bug Holograms 212 - Struct variables not visible in Unity editor

Dear WHDF,

I wanted to add speech recognition to my app and tried to walk through the holograms 212 tutorial. Unfortunately when I added the keyword manager script I immediately saw that the public variables where places in a struct and thereby not visible in the unity editor.

the following variables are placed in the script which you are supposed to set in the editor:

    public struct KeywordAndResponse
        [Tooltip("The keyword to recognize.")]
        public string SpecifiedKeyWord ;
        [Tooltip("The UnityEvent to be invoked when the keyword is recognized.")]
        public UnityEvent Response;

When I place the variables from the struct in a field it immediately works but that is not how the code works. I clean downloaded the file from MS and I am wondering if I am doing something wrong or if the tutorial just contains a bug.

Of course a recommended fix would also be welcome but for now I think I have to set the struct in a different way?



Best Answer


  • Thanks, That would have been usefull in the tutorial :P But that means i can specify multiple words which is nice.

Sign In or Register to comment.