I’ve been trying to understand how to use the animation and animator controllers in unity by following the tutorials available on the unity tutorials web page, but I’m having trouble understanding how to translate the information presented in the tutorials to making a game of my own. In short the tutorials are unhelpful and have left me more confused when something fails in the project, can someone give me clear instructions on how to make unity animation work in general and when using unity scripting with the animation and I’ve provided my small project on what I have done thus far and can you point out where I have gone wrong. Thank you for your time
(Edit) Maybe I should have elaborated a bit more on my problem, the project I’ve uploaded is simply a cylinder and I’m trying to make it swing like a bat, it will swing whenever you press space, but the problem with the tutorials is that they don’t say how to make the object stay in it’s idle animation when the space bar isn’t pressed and when I do press space it doesn’t even swing, is there something I’m missing?
(Edit) Can someone please help it’s driving me insane, I’m getting unnecessarily frustrated with something that most people have no problem in doing.
When I try to learn about a new aspect/tool of Unity, I usually watch some of the tutorials made by Unity. They explain it detailed, slowly, and to-the-point. The animation controller is like a huge if-then chain. If this happens, then Animation 1 (idle animation) plays. It keeps playing over and over again. Then, if suddenly you press “w”, your code in a separate script will set the controller’s boolean parameter named (for example) “Walking”, to true. in the Transition arrow part, you can set when you want it to transition. You can say “I want it to transition when the parameter ‘Walking’ is set to True!” Then, since the parameter Walking was set to true, it transitions from the Idle Animation to the Walking Animation, using a Transition. Sorry if I explained that really badly, but here’s a tut to help out, made by Unity Technologies