Ok, most likely because I haven’t ever done a simple animation in Unity, I am having some problems with them.
Animation - Door sliding open
Animation - Door sliding closed.
I would like to do this with the animation editor in unity, but it is giving me some trouble. (less trouble than importing an animation though)
I have the editor figured out for basics at least. I got the animation of the door closing to work when I triggered the switch. The animation wouldnt stop looping though. I placed a wrapMode.once on it and it still wouldnt stop.
if(flip==true){
animation.wrapMode = WrapMode.Once;
animation.Play("ThickDoor01Slide");
}
So I have two questions. First, why wouldnt the wrapmode work?
Second, is it possible to make a script for an animation made in the unity editor that would basically say.
on collision play frames 1-25 and variable = true.
on collision and variable = true, play frames 30-55.
The playing specific frames is what I am after.
I searched the script reference docs, and the forums for about an hour before I broke down and posted.
Thanks for any help!