Ok, I am trying to make an AR App where at the startup an assetbundle of 3D content and the Dataset is getting downloaded. The only interaction for the user is to scale the 3D models by pinching and playing through all the animations by tapping on the screen. Everything with the assetbundles and the dataset works well so far, but i am not able to get the interaction working. Pls have a look at the question I asked on UnityAnswers, which also describes a little bit better what i am doing:
The reason why i am posting this here is because i have to understand how OnTrackingFound() is working. As you can see in the link above, my currentObject behaves very weird. It has the correct values in on line and in the next line it suddently becomes null without me doing anything to it.
The only time i interact with this variable is when a Target is being found (therefore Vuforia calling the OnTrackingFound() method) i call my setCurrentObject() method from within OnTrackingFound().
So my question is: Is it possible that this method interfers in some way with the update method of my script? Because i can't explain myself why the currentObject has correct values in one line and is null in the next line.
I would also be very happy, if someone has a different solution or idea for this problem, because i thaught that this won't be much of a problem, but now i am stuck for a rather long time on this.
thanks in advance