- Home /
Question by
Carson365 · Dec 22, 2017 at 01:23 AM ·
animationanimationsstart
Animation not playing?
Hello! I have an animation clip that is in an animation component. I am needing (through scripting) to access the animation and turn it on when the Space key is pressed. I have not yet found how to start the animation when Space is pressed. Please help. Thanks.
Edit: I figured out how. I added a public animation variable and accessed it from there. The animation is a panel that comes down and when you press Space again, it goes back up, so anyone know how I could reverse the animation after it was played? Thanks.
Comment