Search Unity

Play AR Animation on TrackingFound

Discussion in 'Animation' started by ar4ta, Mar 17, 2014.

  1. ar4ta

    ar4ta

    Joined:
    Dec 12, 2013
    Posts:
    4
    Now i'm version of unity from 4.3.1 to 4.3.3, but i have a problem for making animation with Augmented Reality (Vuforia).

    This sript for play AR Animation when ImageTarget found (DefaultTrackableEventHandler.cs) in unity 4.3.1 :

    Code (csharp):
    1. private void OnTrackingFound()
    2.     {
    3.        Animation[] animationComponents = GetComponentsInChildren<Animation>(true);
    4.  
    5.        foreach (Animation component in animationComponents)
    6.        {
    7.          animation.Play();
    8.        }
    But its not working for my unity version 4.3.3.

    Whether the type .anim version 4.3.1 is different with. anim version 4.3.3 ?

    What is new reference script for play AR Animation on Tracking Found ?