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.
How can I move each object independently? with Tap to place
I want to use the "Tap to place parent" script to place objects A and B in different locations. We applied the "Patch to Parent" script to each object. However, if you move the A object, the B object also moves. How can I move each object independently?
Best Answer
-
OptionsHoloSheep mod
As the name implies "Tap to place parent" is intended for placing the parent of the gameObject in question, and if both gameObjects have the same parent then when the parent moves, both children move with it.
Check the HoloToolkit for TapToPlace.cs and attach that to the individual gameObjects. This should work for you if you locate both gameObjects at the root of the scene hierarchy instead of parented on a common game object like the Stage as done in the Origami project.
HTH.
Windows Holographic User Group Redmond
WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
WinHUGR YouTube Channel -- live streamed meetings5
Answers
@Yiseob
As the name implies "Tap to place parent" is intended for placing the parent of the gameObject in question, and if both gameObjects have the same parent then when the parent moves, both children move with it.
Check the HoloToolkit for TapToPlace.cs and attach that to the individual gameObjects. This should work for you if you locate both gameObjects at the root of the scene hierarchy instead of parented on a common game object like the Stage as done in the Origami project.
HTH.
Windows Holographic User Group Redmond
WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
WinHUGR YouTube Channel -- live streamed meetings
Hi @HoloSheep,
I'm trying to use the TapToPlace.cs script but I can't make it work.
I have a cube at the root of the scene hierarchy with the script attached, and an empty gameObject with the scripts GazeGestureManagaer, WorldAnchorManager and SpatialMappingManager.
I don't know if I'm missing anything but when I tal the cube on the emulator nothing happens. Would you have any ideas about what I'm doing wrong?
Thanks!
Teresa.
@Teresa You should add the Input Manager prefab and a Cursor prefab to your scene if they are not already there. They are under HoloToollkit -> Input -> Prefabs
AR Developer
Hi @dbarrett !
Thanks a lot! I did'nt have the Input Manager prefab. Now it's working!