microsoft/HolographicAcademy

Holograms-210 Chapter 6 - SimpleTagAlong sample is not working as described

AMollis opened this issue · 0 comments

I'm using the latest version of Unity. At the time of opening this issue the latest version was 2017.3.1f1

The sample in 210 Chapter 6 (https://developer.microsoft.com/en-us/windows/mixed-reality/holograms_210) is not working as described. That is, the "TagAlong" object is never made visible. I've verified that the PerformTagAlong() function is being invoked, and the "TabAlong" object is dynamically being inserted into the scene. However, the "SimpleTagAlong" class is not bringing the "TagAlong" object into view.

As a work around, I've inserted these "run once" lines, immediate after instantiating the "TagObject":

InteractibleAction.cs around line 29

Ray ray = new Ray(Camera.main.transform.position, Camera.main.transform.forward);
instantiatedObjectToTagAlong.transform.position = ray.GetPoint(2.0f);