Unity 5 Tutorial - Animation Control
Vložit
- čas přidán 17. 08. 2015
- Use the Animator Controller to play and blend between animations of the beautiful Unity-Chan model from Unity Technologies Japan
My Games on the App Store: apps.apple.com/ca/developer/a...
My Games on Google Play: play.google.com/store/apps/de...
My Website: www.hibbygames.com
- Music Composed By Stephen Lu
If you ctrl+D onto the animation that lies inside the FBX, it duplicates and separates into an independent animation, so you can now modify its frames.
Youre welcome.
Where do you do that? on an animation clip in the inspector window? I can't seem to do it
I actually wrote a huge reply, but it dissapeared for some reason. Project tab -> The FBX -> Click onto the needed animation -> CTRL+D. After that, select an object in hierarchy with an attached animator, open the Animator tab, drag the separated animation there, then open Animation tab, select the animation and there you go, you can now modify it the way you want to.
p.s. If you delete the original FBX that animation will stop working, cus its referencing to the original one.
Dude! You are a life saver. It's working for me, and this is helping me on my current project, thank you for sharing!
You're welcome my man. (;
I did the Ctrl+D, and posted back to the Object, but.. Still I can´t edit it... Can you help me dude?
i really love how one can see that you yourself are having fun in this video.
the things we learn are great and structured pretty well (in comparison to some other tutorials) and it was really fun to watch. keep it up :3
thanks :)
This guy rly loves pantsu.
xD
I can see his happy aura in every *bam*
FBI OPEN UP
This is a fantastic tutorial. Not only do you explain things clearly and break things down nicely, you also provide a few opportunities to practice the concepts within this video. Everything flows nicely from simple to more complicated. I feel I have a much greater understanding now of how animation works in Unity. Thank you! New Sub.
Just started watching your tutorials to help me out with my new VR designs in Unity, thanks a bunch and keep them coming!
Thanks for the tutorial, I'm learning so much from this!
REAL NBA T.V. Team-Up League awesome! It should carry over to whatever characters you use
+Aaron Hibberd I have another Tutorial request if you don't mind. I need to know how to animate enemies so we can attack each other along with player and enemy health. For example, an enemy that attacks unitychan and dies when his health reaches zero and vice versa. Again thanks for the help.
good idea! health and damage
Mr. Hibberd, I would like to thank you for taking out time to teach us. I am from Humpback Games, and this will help me a lot. God bless you!
Thanks, Aaron! Very nice tutorial for teaching the novice trying to learn to control the character in Unity! Appreciate the detailed walk-thru and clear steps to walk through such a complex topic.
24:30 "Bam bam psh psh psh psh psh! That's what you get!"
+Ferenc Kocsis haha :)
+Ferenc Kocsis SO FUNNNYYYYYY
workign hard and laughing hard
violence against woman ist funny :P
Poor unity chan
@@NoC4k3 yes it sure is! LOL LMFA0!!!!!🤣🤣🤣🤣😂😂😂😂
It's mindboggling that we have unity 5 now and we still cant zoom in and out of the animator window...
+Ricky Johnson haha, yea no kidding
+Ricky Johnson that sucks
Tea Requiem
I would rather pay for an engine that had necessary features than use an engine that hinders my workflow. They should have had that feature figured out before they put the animator in the public build.
+Tea Requiem jesus christ calm down you sperg
Ricky Johnson h b
Your tutorials are so amazing, really helped me a lot. Since I am a beginner I'm still figuring out where everything is. Keep it up! :D
Excellent tutorial. I'm loving Unity-Chan already, haha. Such an impressive model to help learn this big, powerful program. Thanks so much!
Okay so I'm a teen getting into coding because I've always loved games and have always been fascinated by coding but always thought it was too hard. As it turns out, many commands are actually quite simple and this video was a REAL help! Thanks to you, I have been able to make a start on my very first game! THANK YOU!!
Good luck with your game! :) I myself am making my own, also I know right?
Good job bro 🖒
Hey everybody, there's perhaps a more concise way to switch between random animations:
I usually try to see what he does before he tries it, my solution for animation uses less lines of code for the same effect in this tutorial.
I'm not sure if it's any more efficient, and perhaps it's not but this is the way I did it:
int n = Random.Range(0,2);
anim.Play("DAMAGED0" + n.ToString(), -1, 0f);
basically instead of checking if the integer is either number, it directly converts and appends that integer to the string name of the animation
just another way to do things if anyone's interested
then again, it has to use the "ToString()" method rather than just picking the animation, so It could be less efficient
thats my way, thks
***** normally your names would follow a indexed numbering system, as most application files are, it might make it easier to use a public string variable you can set with an indexer
True. Another option is to use a conditional:
anim.Play(n > 0 ? "DAMAGED1" : "DAMAGED0", -1, 0f);
Just to let later people know. int r=Random.Range(0,2); anim.Play($“ DAMAGED0 {r}”,-1,0f);
Thanks for putting this out there! I had no idea blending between animations existed, mind = blown
Great tutorial. I wanted to learn how to animate those assets from unity, and this tutorial is straight to point.
This tutorial saved me. Thank you so much!!!!
+Dorothy Jean Thompson Awesome!
Do u have a tutorial on how to do mecanim with an AI script? Like maybe have enemy stay idle till player a certain distance away, then enemy walk towards player, then when even closer have enemy run and then at range attack player? Have hit animations and dying?
+Dorothy Jean Thompson No I haven't made an AI tutorial yet, it's on my to do list, I want to do that eventually. I just looked at your channel, that VR horror game looks cool. I have actually made half of that before though, for this asset pack I made a zombie that climbs out of the ground, is idle unless the player is near enough to see, then walks toward the player, when close it speeds up, and then you just kill it because you're a car haha czcams.com/video/WN7oXozEtQA/video.html
Oh wow! That looks awesome! You seem like you really know what your doing. Did you go to school for game design? You look so young. :P
Dorothy Jean Thompson
thanks, I worked in a game studio for 9 years, I'm actually super old :P
@aaron Hibberd I am watching in 2019 in still your video is most useful resources available on youtube, you are awesome bro, thanks from India, keep it good work.
Also, it would be helpful if you can make video on animation and multiplayer games with unity playmaker, thanks in advanced. :)
I keep going back to this series. Thanks Hibby!
I was affraid that i have to watch it all, but you explain it very well and clear.Got what i needed before 10min mark.
nice tutor, it's great for newbie like me :D make a lot of them
+Hubertus Putu thanks :)
+Hubertus Putu aiss hubert ada disni hahaha
hari antara ye we wkwkwkwk
hahaha, bert kamu nemu ga cara buat animasi biar charnya bisa ambil barang sama naruh barang? kalau nemu minta linknya ya , dri twktu ini nyari ga nemu" tutornya
buatin animasinya sendiri ri, kamu dapet karaker yang bodynya bisa digerak gerakin gak? yang ada bond nya
This guy is the most sadistic programmer I've ever seen in my entire life...
lol
I thought I knew a lot of the basics but it's crazy how much more i've learnt from this! What a great Tut, thank you so much!!!!
Perfect tutorial. Explained perfectly and was never boring - impressive considering it was a 40 min vid.
your a great teacher
+許華 thanks :)
i am getting 3 errors as
Operator `-' cannot be applied to operands of type `string' and `int'
`UnityEngine.Animator.Play(string, int)' has some invalid arguments
Argument `#1' cannot convert `object' expression to type `string'
Please help.
Your poor mouse. I can hear it's silent screams each time you slam your finger on a button like a ten ton hammer...
but it make me more understanding his tutorial honestly
ha so true
Maxim Reality lol
Nice
Louder than his voice
great job Aaron!! you make it easier and funnier!! looking forward to wachting the next one!!
Great tutorial, it was really useful for me! I've also seen others at my uni using this video to understand animations in Unity! :)
I laugh when you called the Mac version of control the "squiggly button." I call it the same thing too.
Brilliant tutorial, really you put he unity website to shame!
+Kitty Rocoa haha thanks!
+Aaron Hibberd Hey Aaron. Got up to speed quickly with this Tutorial thanks. Just one thing is missing from my scene, and I cannot see why? My character is walking only on the spot? I have copied I'm quite sure all the code specifically to match, but she will not move along the plane? thanks.
+24yrukdesigner I think you might have missed changing the velocity of the rigidbody. 26:53
This is a wonderful tutorial, I was trying to teach a group of cs majors how to do this today and kept mucking it up. Glad to have a video to reference now. Cheers dude!
+Bobby Benfield thanks!
+Aaron Hibberd
Have you thought about doing a video about making a first person shooter, kinda building off the 1st person boat project, and add a gun and make it shoot bullets objects? Maybe even a hit detector?
Thank you so much! I'm surprised how much sense code makes as I'm just starting out. You do a very good job at explaining what we are doing as you walk us through.
Fun fact: Unity chan is free because she is a vocaloid and the rights to he belong to Yamaha
Aaron, this is an excellent tutorial. I was actually working on a project and this tutorial is better than the one Unity actually has posted. You ever thought about posting an updated version on Cubebrush cubebrush.co/ or the Unity Store?
I am sure there are a ton of people that would buy a copy. Myself included. Cheers!
Thanks! :) I don't think I'd be allowed to sell it because it uses the Unity-Chan model
Great, I've been trying this stuff for days, found your video and fixed it in an hour.
Thanks a lot.
AAron Thanks! you are seriously one of the best tutors out here.
MORE PLEASE
+Mahana Delacour haha thanks!
great tutorial :) , maybe you can make a fighting tutorial ! a simple one will be very helpful . thx :)
+Faisal Eghzawi thanks! good idea that would be cool :)
+Aaron Hibberd cool. maybe a street fighter type 2d/3d :)
+Faisal Eghzawi haha, I suck at street fighter, I'll lose at my own game :)
+Aaron Hibberd something simple , player walking and fight with enemies will do :)
What did poor Unity-chan ever do to you? :(
She exsisted that’s what!,,
Excellent tutorial! Easy to follow, short and easy-to-read code.
Thank you for coaching this new system. Now it all make sense now!
Okay I have a question. I'm at around 23:00 minutes in and i'm having trouble with the walk animation. I can't get the animation to work. I may have missed something in the vid but the blend tree isn't working.
Shocking Wolf me too -_-
let me know if you find a solution because i've tried a bunch of things but none of them work
Shocking Wolf okay, let me know too if you found the solution. i just newbie here, so it will take a time...
yeah im a newbie as well lol
Shocking Wolf i have great news, there is scripts on unitychan, but just a few scripts can works perfectly. i just put unitychancontrol.., idlechanger, faceupdate, and sceneloader. so the movement will work but the character has a bug, there is gap between character and ground, look like flying 😂
for move we better added these lines:
Vector3 vtemp = new Vector3(moveX, 0f, moveZ);
vtemp = transform.TransformVector(vtemp);
_rbody.velocity = vtemp;
must convert from local to world first
Thank you so much for this. I knew I'll be in trouble since my character wasn't in 0,0,0 !
This was helpful!
I dont know why millions arnt subbed to you! I been looking everywhere for a tutorial on this and you are the first one ive seen!
You earned a new subscriber!
That is an excellent tutorial, 10/10 for me and I just did everything with unity version 2017.3 and no problems. What I liked the most is that you did not assume that we would know what to do, and you have explained every steps clearly. Unfortunately, I am doing a tutorial with a book and there is so many "assumption" that I cannot finished the project. But with what you teach here, I will be able to, thanks :)
15:45 Lol
+Omar Moodie :P
15:40 really creepy there, but thanks for the awesome tutorial!
Lmao stfu up bitch
very good tutorial for the overall animation system in unity. This is what I needed!! Thanks a lot.
10/10, much much better than the official unity tutorials. Keep it up man, this is a really good video!
I don't mean to be a code nazi, but a Case statement would have probably been better instead of the 4 if statements.
This is more for people who do not know C#, so jeah, If you don't know it, google it, it will definitely help if you end up with even more ifs.
Also I loooove these tutorials. By far the most informative and overall best quality I've come by. Thank you for making them, I've already spent many hours here and you might get me to finally make a GAME!!! :D
Thanks! :)
It's a switch statement.
+Lars, Ah, you're right. Thanks.
My first language was Delphi, so it stuck.
Just reading my comment is making me cringe. He's so obviously a better coder than I and here I was giving advice... smh.
I think I wanted to phrase it in more of a question, like "wouldn't a case (switch I know now) statement be better instead of all those if's?"
blugh. Whatever it's over now. Sorry about that.
just for the record, I didn't even know how to write a switch statement, I always use if statements because it was just the first way I learned, most of the time I actually have no idea what I'm doing and just go with whatever seems to work :P
Haha, I love and respect that.
If statements are nice and easy to look at, but it becomes tedious to write if it's for simple cases like 1,2,3,4... especially if there are more than 4.
Switch statements might be a nice tool for you to use later.
Again, thanks for the videos. Unity is amazing, but it doesn't mean anything if you don't even know where to start.
good tutorial but the sound is bad !
I have been looking for a video like this for over a year!!! Thank you!
:)
love the sound effects
Definitely one of the best tutorials I have seen. Great work! Fan + Subscribed. :D
Followed it step by step, learned so much! Thanks!!
Thank you very much for posting this. I'm an aspiring indie game designer and I'm still having trouble with Clickteam Fusion 2, so this will be a whole new mountain to climb. But people like you provide the right assistance for people like me who would otherwise be in the dark.
you are really good at explaining things, cleared up a lot of terms for me. much appreciated!
+Anthony Caldeorn thanks!
Woah, great video mate!
Great tutorial-well paced and very thorough. Cheers
wow this is an awesome tutorial on the animator, so clear and useful. Thx man subscribed
+GreedC thanks :)
The greatest mechanim tut on the CZcams. Thanks for everything!
+Mercury26222 thanks!
This is great! Thanks for the video, my man! Excited to see what's in store for the future -- keep it up and stay classy.
+Brett Melnrick haha, thanks!
Awesome tutorial. Just to avoid confusion for those still learning, at 18:45 he refers to the bread crumbs at the top of the state machine as layers. Those are actually the SubStates... layers can be created using the Layers tab to the left of the Parameters tab and are used for entirely new animations such as a hand wave or taking a drink etc... these new animation layers will in turn each have their own state machine. But really an amazing tutorial here. Of the best I've seen on the topic.
thanks man!
Really good tutorial. Just getting back into Unity, mega helpful.
Wow man, this was super helpful! Thanks so much!
You make the best tutorials !
Well after a full day of trying everything to get the animations to properly shift from Idle to Moving, I think you just saved my skin. Thanks a lot mate!
+Endlesswhiner haha, that's good
Great tutorial. Covered all the basics, helped a lot!
Really outstanding tutorial! Thanks!
So clean, so easy to understand, thank you you helped me well :)
After 8 years still help! Thank you.
that's good haha :)
Great tutorial Aaron. I'm using this as my first tutorial on getting myself learning Unity :-) It's really concise and get the works done. Going to do this with OSVR and see how it looks.
Thanks dood!!! Its hard to find people that know how to teach! You did a great job!
+Jose Marcano thanks!
Excellent tutorial! I learnt a lot. Thank you.
Thank you so much for this video! I learned quite a bit. You did a great presentation and I enjoyed watching and following your instruction.
Best Tutorial I have ever saw on Animator. Thanks alot.
+Peter Andre thanks! you're welcome
BROOO thankyou so much, this really helped and the tutorial was really easy to use as well :)
Thank you for this video :) been trying to get an animation to play only once and never worked but doing it this way helped me alot. Thank you :D
+Rachel Williams Awesome :)
ty for this tutorial, now i know everything about the animator controller, its awesome, there is not a good official tutorial about this
Thanks a lot Aaron really helped me through the struggle with the unity animator
+Mahammad Albarrrak :)
Awesome tut! learned alot!
you've helped me understand how to make models trigger and object and then do an action and possibly perform an animation! thanks
Great Video! Thank you so much for making it.
Helped me more then anyone so far thank you. Great teacher.
ahhh out of all the videos this worked thanku
Wow. You're the best. I couldn't understand what you were saying but I just followed instructions. Thank you so much
Nice tutorial! Thank you!
Thank you for this video. Was very helpful during our game jam :)
Thank you very much! This helped me alot in getting in touch with the animation system of unity :D
Very well explained Thank You Aaron :)
Awesome tutorail! You've explained it great. Thanks!
awesome tutorial... feeling like i can really make a game now
I saw this and it was soooooo awesome thank you for making these videos.
Great Tutorial really helped
This was so helpful!! Thank you
Great job explaining the steps. Thanks!
+Silverstar3 thanks!
good work king, love you
Thank you very much you made me understand how to use the Animation Controller.
You are the best Unity tutor on CZcams :P
+Gracie Zhang thank you :)
👍 This is a great introduction to scripting animations in Unity. Well done! 🤓❤️
Awesome Video !