- Home /
Question by
MSB786 · Sep 11, 2020 at 11:45 AM ·
animationanimatoranimationclip
how to play animation every time when the target object is found ?
Hi Guys
Hope you are doing well.
I created a custom animation in unity 2019 and it is only played once when the image target is found in the start but I want it to play every time when the image target is found.
Waiting for your response ,
Comment
Answer by OneTrickPonny · Sep 11, 2020 at 11:57 AM
when you find the object you can use Animation.Play() https://docs.unity3d.com/ScriptReference/Animation.Play.html