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.

Sharing GameObject Activity

Hi,
I'm still reasonably new to HoloLens development (and Unity scripting) but I'm getting to the point where we would like to try and get our apps into a classroom setting.

Right now we can share the initial state of the App that we deploy on our HoloLenses. We would like to activate and deactivate based on UI buttons (similar to those found in the InputManagerTest scene), these buttons activate and deactivate a number of holograms that are contained within the app (not spawned). When they are activated the hologram appears only on the local HoloLens. Could someone please tell me how to broadcast whether or not a GameObject is active in the scene or not to other HoloLenses?

I feel it must be within the CustomMessages.cs script but for the life of me I can't see how to incorporate what I need.

Thanks!

Tagged:

Answers

  • You're on the right track with CustomMessages.cs. Go ahead and take the Holographic Academy 240 course if you haven't already, and make sure to take good notes when they cover the messaging portions. If that doesn't get you on the track to success, follow up with these steps:
    1. Starting with CustomMessages.cs in the 240 project code, find all references for the message types from the enum and all SendWhatever() methods that are in the class.
    2. You will see the pub/sub nature of the messaging:
    * create new message id
    * create new Send method
    * subscribe to new message in your code
    * call the Send method as appropriate from your code

Sign In or Register to comment.