- Home /
Question by
f_rodrigues · Dec 01, 2013 at 07:42 PM ·
gameobjecttriggerfunctioneventanimation editor
Animation playing other object animation
I have a camera movement and when it reachs certain point it calls a function, in this function I want to play an animation in other object.
The code:
var Animator : GameObject;
var clip : AnimationClip;
function TriggerAnimation()
{
Animator.animation.CrossFade(clip.name);
}
But it doesn't play, it doesn't give any error and the script is all grayed-out.
Any hint?
animation_event.png
(52.7 kB)
Comment