Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

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

Open
AMollis opened this issue Feb 14, 2018 · 0 comments

Comments

@AMollis
Copy link
Member

AMollis commented Feb 14, 2018

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);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant