Search Unity

Replay animation after target is lost

Discussion in 'Vuforia' started by matiasz19, Sep 12, 2019.

  1. matiasz19

    matiasz19

    Joined:
    Jul 19, 2019
    Posts:
    2
    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!
     
  2. Sika_MC

    Sika_MC

    Vuforia

    Joined:
    Jul 17, 2019
    Posts:
    96
  3. NikkoFuentes19

    NikkoFuentes19

    Joined:
    Nov 12, 2019
    Posts:
    2
    Hi everyone!

    So i have no idea about coding, and i really need your help i have an .fbx containing a short animation. I want to know how can i replay this animation after the target is lost. The animation name is Take 001 and i dont know where to replace it or how to call it in the reference code that you are mentioning.

    Please help me i´m desperate.