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.

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:

        [System.Serializable]
    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?

Kr,

Tvt

Best Answer

Answers

  • 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.