Log in or register to post comments

Start animation on marker track

May 18, 2013 - 1:41am #5

Hi, I have an animation in Unity that I want to start, not when the App starts but when the AR camera picks up on the marker. Is their a way to do this? Thank you.

Start animation on marker track

May 18, 2013 - 5:07am #4

Hi, you can intercept the event of when the target is detected using the IDefaultTrackableEventHandler interface and hook your code (for instance to start a custom animation) in the OnTrackableStateChanged() method.

An esample of such Handler implementation is represented by the DefaultTrackableEventHandler that you can find in the ImageTargets sample.

Start animation on marker track

May 27, 2013 - 11:19pm #3

Hi Alessandro,

Can we play same animation at different transform position of object . ???

For example : animation A (translate in Y  direction) is attached with gameobject  G, after playing this animation change the position of G in any direction then play same animation.

Will the animation start from original position or from new position?

 

Start animation on marker track

May 28, 2013 - 1:35am #2

Hi, that's just a matter of you code your animation logic in Unity;

of course you can achieve both types of effect (either restarting from original position or continuing from last position).

 

Start animation on marker track

May 28, 2013 - 3:50am #1

Hi,

Thanks for your reply, Changing position is not working in my case.

But I have solved this problem by creating multiple animation clip of single object at different position...

 

 

Log in or register to post comments