Closed ideasdeployed closed 6 years ago
Hi @mhoward2467,
Can you provide code sample for how you're instantiating the prefab? This is most likely and initialization issue with app bar post spawn.
thanks, -pat
@paseb Hello, here's the code and below is the actual values after the scaleClonePrefab get instantiated:
ScaleClonePrefab = Instantiate(UIContaindScaleClonePrefab, new Vector3(selectedUIContainerScript.transform.position.x, selectedUIContainerScript.transform.position.y, selectedUIContainerScript.transform.position.z), Quaternion.LookRotation(cameraForward, Vector3.up));
Thanks for taking time to look into this... And here's the BoundingBoxShell settings
@mhoward2467 Hi, we have ported Bounding Box and App Bar to MRTK. It works with the latest MRTK Dev_Working_Branch. Please check this pull request: Microsoft/MixedRealityToolkit-Unity#1785
Ok that's awesome, I will work n that this evening and let you know how it goes.
Thanks
Sent from my Windows 10 phone
From: Yoon Park notifications@github.com Sent: Saturday, March 3, 2018 10:34:36 AM To: Microsoft/MRDesignLabs_Unity Cc: mhoward2467; Mention Subject: Re: [Microsoft/MRDesignLabs_Unity] AppBar always renders -2.9 m behind the hololens (#92)
@mhoward2467https://github.com/mhoward2467 Hi, we have ported Bounding Box and App Bar to MRTK. It works with the latest MRTK Dev_Working_Branch. Please check this pull request: Microsoft/MixedRealityToolkit-Unity#1785https://github.com/Microsoft/MixedRealityToolkit-Unity/pull/1785
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/MRDesignLabs_Unity/issues/92#issuecomment-370169532, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACQwTB1JYqQjwiWdQNRXNlDF-6SYJJChks5tauI8gaJpZM4SGR6W.
Do you have a sample of attaching a bounding box and app bar to a newly instantiated object via code?
Sent from my Windows 10 phone
From: Yoon Park notifications@github.com Sent: Saturday, March 3, 2018 10:34:36 AM To: Microsoft/MRDesignLabs_Unity Cc: mhoward2467; Mention Subject: Re: [Microsoft/MRDesignLabs_Unity] AppBar always renders -2.9 m behind the hololens (#92)
@mhoward2467https://github.com/mhoward2467 Hi, we have ported Bounding Box and App Bar to MRTK. It works with the latest MRTK Dev_Working_Branch. Please check this pull request: Microsoft/MixedRealityToolkit-Unity#1785https://github.com/Microsoft/MixedRealityToolkit-Unity/pull/1785
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/MRDesignLabs_Unity/issues/92#issuecomment-370169532, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACQwTB1JYqQjwiWdQNRXNlDF-6SYJJChks5tauI8gaJpZM4SGR6W.
I have a prefab that I instantiate via code, the prefab has the following scripts, a Compound Button, Bounding Box Target with a Box Collider. Everytime time it renders, the app bar is always behind me.
In the Unity I can see it and when I try to move it forward via the inspector it snaps back to its position.
Ive been stuck on this for weeks of and on, any help would be appreciated.
Env: Win10, Unity 2017.1.0p5
Thanks in advance