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.
Share an object and let every user move it
I need to acomplish this task that seems to be simple but I can't find the proper way to achieve it : I want to be able to move a cube (for now) and everyonne else connected to the shared experience can see it and move it too, with a HandDraggable or a TapToPlace for instance. I made a panel with buttons so the user can translate the cube and I thought it may be easier to trigger actions based on buttons.
Here is what I currently managed to do :
- configure a server running ServiceManager.exe
- connect 2 hololens to the server
- they both see the cube on the same spot.
I've been through Holograms 240, watched all the videos and tried to understand the code, I read through CustomMessages.cs, HologramPlacement.cs and RemotePlayerManager.cs trying to figure it out but I'm lost, I don't know which lines are needed and which aren't. I understand that the position needs to go through CustomMessages.cs in order to be broadcasted but I don't know what exactly I have to add in the script and if I have to add something elsewhere.
My programming skills are limited and I don't grasp every concept in those files. I just need to share the cube's location and let everyone move it. I know there would be a conflict if several people are trying to move it with a HandDraggable/TapToPlace but I don't care, let's say I'll take the last location where the cube has been placed.
Any help would be appreciated.