- Home /
Is it a way to get the animation object form the animator?
Hello!
I'm kind of new with this new tools from unity and i want to know if I can get an specific Animation object from an Animator, kind of a GetComponent but for the Animator. I have only one Animation, and I want to control the ubication (time) of it. I have the Animator as a component of the same GameObject, and I know I can attach the animation and it would be more simple, but I really want to know that.
Thanks, for the atention, and have a nice day
var MentalField1 : GameObject;
private var sTexto1 : String;
private var aniAnimator : Animator;
function Awake()
{
aniAnimator = GetComponent(Animator);
//I want to get the animation from the animator here, so i could control it
}
//An Event for the animation
function keepOn()
{
//Want to control the animation time here
}
Comment