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.

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.