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.

How to have multiple objects for selection

Hello everybody,

How can I achieve that I can select different holograms in my app. For example, I want to have the opportunity to select and watch a tennis ball. After that, I want to pick a basketball to watch it. But when looking at the balls, they must never be considered together. These must always be considered individually.

Many thanks for your help

Answers

  • I do not know if I understand you questions correctly. But if you want to see two holograms one time, it is possible. You can use unity to put the two holograms in one scene, and then deploy to Hololens.

  • Hi @RingMyBell,
    yes i know how to put tow holograms in one unity scene. But i want to see those holograms seperatly. For example you have an selectionbox with some options. Option one shows only for example the tennis ball without the basket ball. And option two the contrary.

  • @Memo said:
    Hi @RingMyBell,
    yes i know how to put tow holograms in one unity scene. But i want to see those holograms seperatly. For example you have an selectionbox with some options. Option one shows only for example the tennis ball without the basket ball. And option two the contrary.

    Do you try the Holograms App installed in Hololens? For the menu window, you can see a list of different holograms, and you can air tap on to select each one of them.

  • @Memo

    First you want to create a variable to reference the currently "Selected" gameObject.

    Then provide the user a way to make a selection (voice command, air tap, etc..).

    The associated code would both set the variable for the SelectedObject to the given gameObject as well as turn off any selection indicator on the previously selected object before making the change and turn on the selection indicator for the newly selected object.

    The selection indicator that you want to display on (or move to) the currently selected object is up to you. It can be a selection box mesh or whatever you feel is appropriate to indicate to your user which game object is currently selected.

    In one of my projects I used gaze with a voice command to select the selected gameObject. My variable and logic was centralized in an empty gameObject that acted as a controller on the root level of the scene's hierarchy. I used a single gameObject as a selection indicator that I moved to the location of the selected gameObject and hid when there was nothing selected.

    HTH.

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

Sign In or Register to comment.