String AR - Start an animation when String AR detects a Marker

Im new to Unity and I’ve been playing with it and the String AR for the past few days. What I would like to know is the proper way to start an animation while the Marker has been detected.

Do you guys know how to achieve that?

Thanks in advance!

Hi Elmordisco, I also want to be able to do this… did you manage to get this to work?

I managed to get this to work using the following code in the Update function of the ARManager script…

if(!RainbowAnimated) {
    
    GameObject rainbow = GameObject.Find("/Root Object 1/RainbowWithClouds");
    rainbow.animation.Play ("rainbow");
    			        
    RainbowAnimated = true;    

}