By krysis08
on Thu, 09/12/2019 - 18:23
Hey everyone!
So i made a simple animation for my AR project and works fine but when the target is lost and detected again, it show the animation in its last state: idle.
So, i wanna know if there is a way to restart the animation when the target is detected again. I tried to use the Animator API on the handler script but i am too newbie to coding so, i cant make it work.
Any help would be great! Thanks!
Hi,
Hi,
In the Vuforia Core Sample app, in the scene: 3-MultiTargets we demo exactly what you want to achieve. The animation stops when tracking is lost and starts when tracking is found again.
Script: MultiTargetTrackableEventHandler.cs handles part of the logic.
Thank you.
Hi,
Hi,
I checked the scene that you mentioned and i tried to implement the code into my scene but nothing happens.
This is my modified code for the handler: