By Egamorf
on Sat, 04/07/2018 - 16:53
Hi guys !
I'm really noob at C# but i would like to know how to do if i want to start/stop animation when target found/lost ?
For my project i want to start an animation of an animated 3D object when target found, and stop when target is lost, and then resume when found again.
I have seen something similar here (but with ARKIT) :
https://www.youtube.com/watch?v=LX8BFFFWtFw
Thanks for help :)
Replace
Replace DefaultTrackableEventHandler.cs on your image targets with something like this. Add your own code for stopping/starting to the methods
As i said, i'm noob at C#...
As i said, i'm noob at C#...
Could you show me how to use your script with for example an fbx animation ?
Did you manage to get results
Did you manage to get results, I am struggling to put the c# in the handler caus im also noob at this lol
i tried
animator anim;
then in the method i wrote
anim.Play;