How to Animate Characters in Unity 3D | Animation Transitions With Booleans

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 27. 06. 2024
  • Learn how to transition between multiple animations using booleans in Unity 3D!
    This beginner-friendly tutorial is a complete walkthrough of how we can get our characters to transition between animations using the animation controller's parameters.
    ACCESS PROJECT FILES & SUPPORT THE CHANNEL:
    💛 / iheartgamedev
    iHeartGameDev Merch:
    💛 www.iheartgamedev.com
    WANT MORE?
    Interested in learning more about animating characters in Unity? Check out my growing series of tutorials:
    ✅ ‱ Unity's Animation System
    ✩ Like the vid? Please consider Subscribing!
    bit.ly/2YdIb6j
    ✩ Missed out on the last episode?
    ‱ How to Move Characters...
    SOCIAL:
    ✩ Discord
    / discord
    ✩ Twitter
    / iheartgamedev
    SERIES DESCRIPTION:
    This episode (Ep: 2) is the third video in a series dedicated to understanding the fundamentals of Unity's animation system. Episode 0 was an introduction to the project and explains how to import free characters and animations from Adobe Mixamo. And Episode 1 was a full break down of the Animator Component. Be sure to check out the other videos in the series to continue learning!
    GEAR:
    Lumix G7 Camera: amzn.to/3Kks1gZ
    Epomaker GK68 Keyboard: amzn.to/3Ke87EB
    Samson C01U Pro Mic: amzn.to/33kDdtG
    LG 27" Monitor: amzn.to/3qAHFwS
    Lepow 15.6" Portable Monitor: amzn.to/3287OtL
    Logitech G604 Mouse: amzn.to/3A6jNV4
    Audio-Technica ATH-M50X Headphones: amzn.to/3tBaeMT
    X-Pen Artist 15.6 Pro Drawing Tablet: amzn.to/3FE5HLI
    Apple 15in MacBook Pro Laptop: amzn.to/3AbKdFc
    â–șTIMESTAMPS:
    Intro - 0:00
    Catch up - 0:31
    Project Start - 0:50
    Animator Parameters: 1:04
    First Parameter: 1:27
    First Transition: 1:47
    Transition Settings: 2:09
    Adding a Condition: 2:29
    CODE: 2:58
    Add our first Script: 3:04
    Start And Update: 3:35
    Pseudocode breakdown: 4:02
    Connect Script and Animator: 4:18
    Has Exit Time: 5:23
    Has Exit Time Breakdown: 5:29
    Transition back to Idle: 6:09
    Indefinite Walking: 6:35
    Stop Walking Code: 6:53
    Refactoring: 7:09
    Controlled Walking: 8:16
    Learn to Run: 8:26
    Code for Running: 8:41
    Controlled Animations Result: 9:41
    Transition Settings: 9:50
    Solo And Mute: 9:55
    Transition Duration: 10:20
    Transition Offset: 10:33
    Interruption Source: 10:45
    Next Time: 11:23
    Where we’re going: 11:32
    Thank you for watching!
    #indiegame #gamedev #indiedev #2020

Komentáƙe • 735

  • @CosmicComputer
    @CosmicComputer Pƙed 4 lety +323

    This might be the best tutorial series for unity I have ever found. I love the way you explain each component and function in detail, but do it in a clean/quick way. Thank Nicky, these are awesome and you have a new fan!

    • @EndZee
      @EndZee Pƙed 3 lety +2

      Yeah, I want to learn how to make a game. One of basics features i found on this channel. To be honest they are really amazing and easy to understand. Hope there will be more tutorials. Wish you luck because content you are doing is great. Simply as that.

    • @JonataAlvesVet
      @JonataAlvesVet Pƙed 3 lety +5

      @@iHeartGameDev Please keep going!!!! 100% the best tutorials I ever found too.

    • @chess4058
      @chess4058 Pƙed 3 lety

      don't we get a copyright strike?

    • @NephariusAMG
      @NephariusAMG Pƙed 3 lety +4

      I know!!! I’m a fan! Lol it’s gonna help me so much!

    • @kingdom216
      @kingdom216 Pƙed 3 lety

      How can you say this is helpful, it doesn't show how to add other animations to the character. I have a character that just walks in place, and I can't figure out how to add jumping and other animations. He goes too fast and no matter how many times I have rewound it I am still confused on parts. I copied the code changing isWalkingHash to isJumpingHash and followed suit for the rest of the script changing "W" to "space bar" and it doesn't work. This feels like half of a tutorial, where is the rest of it?

  • @ceko5472
    @ceko5472 Pƙed 3 lety +97

    you are the Next Brackeys

    • @Hoptronics
      @Hoptronics Pƙed měsĂ­cem

      ​@@solomonhater3088 not better. He just expands on what Brackeys explains.

  • @georsonchua
    @georsonchua Pƙed 3 lety +12

    really love the visual breakdowns. even if I already know how they work, how you show them on the breakdown make me think, understand, and remember it better. those checking also is a great plus as it make me not lose where you are at.

  • @adamasplit
    @adamasplit Pƙed 3 lety +77

    your tutorials are simple to understand, your voice is perfect for tutorials, your montage is clean...
    PERFECT!!!!

  • @evaisotalo3386
    @evaisotalo3386 Pƙed 3 lety +13

    Unusually well executed tutorial. The detailed explanations on what the various parts do and mean are priceless. Thank you for the time and effort producing these.

  • @AphixDev
    @AphixDev Pƙed 3 lety +6

    Coming from a ue4 background, these tutorials are extremely useful! The Unity animation system was once one of the seven mysteries of dev for me XD

  • @alexjackson3767
    @alexjackson3767 Pƙed 4 lety +10

    Awesome stuff dude :) your way of explaining things is always super clear and I feel like I'm understanding the core of what unity is actually doing - excited for more !

  • @ianfarrell1182
    @ianfarrell1182 Pƙed 3 lety +17

    Never thought I'd be able to add 3d animation into my game this easily. Thank you for making this so clear and concise that even a beginner can follow along.

  • @Kncperseus
    @Kncperseus Pƙed 3 lety +5

    This video was a lifesaver. I felt so cool making my character go between the animations

  • @paddybanerjee9211
    @paddybanerjee9211 Pƙed 2 lety +7

    Tutorials like these are the only reasons I can make a game.

  • @akashverma4280
    @akashverma4280 Pƙed 3 lety +44

    I have been using unity for quite a time, this has got to be the best tutorials ever made. There were some things that I already knew but I preferred watching as the quality so great! Efforts appreciated!

  • @RivuDonTech
    @RivuDonTech Pƙed 3 lety +5

    People like you will grow ! never stop doing what you love man ! and always do for the community appreciate it !

  • @charlesonis3484
    @charlesonis3484 Pƙed 4 lety +3

    Awesome to see this series continue!

  • @jimfigueroa3308
    @jimfigueroa3308 Pƙed 3 lety +1

    I looked for days, days! For someone, anyone who could explain clearly and simply how to make an animator controller. The result was always, *starts simple and then gets lost in some part of the code or other breakdown*
    What you have done here is nothing short of a miracle, someone said below that you are the next Brackeys, I couldn’t agree more. Keep this up please and I wish you success in becoming just that. subscribing now, thank you so much!

  • @miklepavlov176
    @miklepavlov176 Pƙed 3 lety

    The best tutorial series. Thank you very much. I spent weeks looking for a video or explanation of ow to do animation in Unity. And with you not only I finally get it but also started to understand C#. Honestly. Thank you very much

  • @joelbiju4101
    @joelbiju4101 Pƙed 2 lety +1

    I'm starting to question how I did not find your channel before. This series has been absolutely amazing in my learning about Animation in Unity. Thank you Nicky so much for this.

  • @DavTheCanadian
    @DavTheCanadian Pƙed rokem +1

    Sincerely one of the best tuto you can find on CZcams for this subject !
    Pretty clear and very detailed !
    Thank you so very much !
    Congrats and continue this way, my friend !

  • @DaysOfFlightSim351
    @DaysOfFlightSim351 Pƙed 4 měsĂ­ci

    This is the best tutorial that I have watched for Unity. 3 Years so far, and still good as new!

  • @michaelwilson8461
    @michaelwilson8461 Pƙed 3 lety +1

    I know its been said many times already but 1 more time wont hurt. The format of your videos really does make things a lot clearer. The graphics and arrows showing the flow really does clear things up. Many times a subject can actually be pretty straight forward once you understand it. Providing the clarity and understanding is where you excel.
    Nice work man. Don't change your approach its both useful and appreciated.

  • @dec_ves2190
    @dec_ves2190 Pƙed rokem +1

    out of all the tutorials and this is not me just saying this to say this but this made me going from not understanding it to understanding it in 12 minutes. good job and keep this up!

  • @ShawnGreyling
    @ShawnGreyling Pƙed 3 lety +13

    PLEASE keep this up. these tutorials are worth their weight in gold. thanks so much đŸ™đŸœ

  • @codewithkarthik7136
    @codewithkarthik7136 Pƙed 2 lety +1

    The best tutorials for in-depth animation in unity 3d. Amazing. Keep it Up!! Loved this series so far

  • @_silviu276_8
    @_silviu276_8 Pƙed 3 lety +1

    This video is really the best I've ever found on animation controller. I tried to learn this system and I kind of failed and I just didn't really want to work again with animations, but you're videos made animations look so easy to me now. Love your content and thank you a lot

  • @0997udan
    @0997udan Pƙed 2 měsĂ­ci +2

    I have always been a programmer and not an animator, you are amazing and you earned a new subscriber

    • @Hoptronics
      @Hoptronics Pƙed měsĂ­cem +1

      Same.. been waiting a long time for programming to be integrated into basically a game IDE. This is gold .

  • @mingshengng218
    @mingshengng218 Pƙed 3 lety

    Absolutely the best explanation for animation that I had seen so far!
    Especially the way to explain for every property to help us have a better understanding, I really enjoy watching your video!
    Your channel deserves more subscribers!

  • @thereddishknight426
    @thereddishknight426 Pƙed 2 lety

    The amount of time i have searched for a good tutorial like this one! You have earned yourself a new subscriber

  • @CodeLife_12
    @CodeLife_12 Pƙed 2 lety

    I'm impressed by the quality of these tutorials. The explanations are clear and concise and, more importantly, the concepts are explained in depth! Thank you making this great content, you really have good educational skills, keep it up!

  • @thircidia7024
    @thircidia7024 Pƙed 3 lety

    Dude, you know how to teach. Excellent work so far. Love the explanations, you never have irrelevant details. Smooth, clean and on point. Am subscribed and anxiously waiting for the next lessons

  • @ricebowl___
    @ricebowl___ Pƙed 3 lety +2

    Dude your content's production quality is so high it's shocking. I'm like 3 videos in, and I can't believe how good your tutorials are. I don't know if you're a one-man army or have a team behind you, but you do great work. You are going to succeed here on CZcams!

  • @matijalovrekovic5534
    @matijalovrekovic5534 Pƙed 3 lety

    Truly the best unity animation tutorial I've ever seen. Far surpasses the bigger channels. Subbed!

  • @ClayAshby
    @ClayAshby Pƙed 3 lety

    You are so good at these tutorials. Keep them coming and you will be a huge channel in no time. Best I've found and I really appreciate it!

  • @mati2020
    @mati2020 Pƙed 4 lety +1

    IÂŽve been struggling with this for months, you just explained it perfectly, great tutorial!

    • @blaccy5991
      @blaccy5991 Pƙed 3 lety +1

      Months!!! It really isn't hard if you just look up the documentation

  • @alexandres.vasconcelos8017

    This is the best tutorial for unity I've ever watch. Congratulations!

  • @imtherealmatix8347
    @imtherealmatix8347 Pƙed 3 lety

    i just wanna say that i love ur tutorials and they are so well explained and simple that it makes me understand more about unity! thanks for helping me out!

  • @srinfinity5587
    @srinfinity5587 Pƙed 3 lety

    Just discovered this channel and already seems to be much higher quality than most. I’ve been looking for months for a good CZcams video on how to set up character animations using C# and animations. May I suggest doing a full video on doing just that? It would be AWESOME! Keep it going, I’m sure you’ll get these subscribers!

  • @Soulzjd2
    @Soulzjd2 Pƙed 3 lety

    I started messing with programming when I was maybe 9-10 years old and I am now freaking 40 years old and when pressing the W key up and down, watching the idle/walk happen... legit was the same feeling I got back when I was a small child and made a computer print "hello" :D
    Wish you the best with the videos m8 ... appreciate the time taken to make timestamps and how to breakdown each element. If I had gold stars to give you get one for sure.

  • @AndrewLyon23
    @AndrewLyon23 Pƙed 2 lety +2

    Dude, you edit these in a truly unique and informative way. Please keep doing this!

  • @data_dan_dimas
    @data_dan_dimas Pƙed 3 lety +2

    I'm kinda surprised this video only has so much views, I mean I thought everybody who started with unity should learn this at least, and this tutorial is definitely one of the best you can find in youtube. Many thanks for the clean works!

    • @data_dan_dimas
      @data_dan_dimas Pƙed 3 lety

      @@iHeartGameDev I just realised that the YBot's position isn't changed when the walk/run animation is running. have you, by chance, done a tutorial vid about making it move? that would be real cool :)

  • @nein_3371
    @nein_3371 Pƙed 3 lety

    I really like the way you go into detail and explain the individual options. Many Thanks

  • @daxtonzimmerman3091
    @daxtonzimmerman3091 Pƙed rokem

    hes always so happy. I love it. He explains everything so well. Good job man.

  • @dannyjace185
    @dannyjace185 Pƙed 4 lety +1

    thank you! can't wait for the next one

  • @foozy7923
    @foozy7923 Pƙed 3 lety

    Hey Nicky, greetings from Turkey, Istanbul. I am getting GD course and deep learning of Unity / Unreal are our responsibility. Project seasons started, your lessons definetly saved my life and after completion boosted my morale to the roof :) Your teaching, explaning + visuals are great. Please dont stop, keep it going. Or put them in professional course networks after a while, i am sure you'll push the top. Thanks again bro, GG.

  • @BlexStone
    @BlexStone Pƙed rokem +1

    best tutorial about animations ever seen, thank you so much everything works

  • @oldchannelunused213
    @oldchannelunused213 Pƙed 11 měsĂ­ci

    Not only this teached me animating, but it also teached me to have a boolean based on when the player presses a certain key! Thank you alot! +1 sub

  • @francescosorrentino134
    @francescosorrentino134 Pƙed 3 lety

    I love the way you break down steps and explain so clearly, you are seriously good, and I am really hard to please :) please keep it up! You are amazing Nicky I am so glad I have found your chanel, I beg you not to stop! :)

  • @macleodgordon
    @macleodgordon Pƙed 3 lety +5

    I've learned quite a bit from the previous 2 videos, but this one made my head hurt! Being 67 years old, I guess I need to slow down your videos before I watch, you sure do talk fast. Thanks for the videos, they are great. I'll watch this one again at .25 speed.

    • @stonecoldblue1
      @stonecoldblue1 Pƙed 2 měsĂ­ci

      string Honesty = "In all Honesty we should be learning from you" ;

  • @viktoriiashkurenko2849
    @viktoriiashkurenko2849 Pƙed 3 lety

    man this is the best Unity tutorials I have ever seen!

  • @phamgiaminh6496
    @phamgiaminh6496 Pƙed 3 lety

    You are deserved to get even more subs, your tutorial are short, simple, and beginner-friendly.

  • @FaffyWaffles
    @FaffyWaffles Pƙed 3 lety +2

    I've said it before, u are new Brackeys. This was so GOOD. THANKS

  • @ajmckennan1663
    @ajmckennan1663 Pƙed 4 lety +1

    So much love and such great content!

  • @geometrydash2118
    @geometrydash2118 Pƙed 3 lety

    you'r a bloody legend mate

  • @XadegamerOfficial
    @XadegamerOfficial Pƙed 4 lety

    Awesome bro, can't wait for next one

  • @fillman86
    @fillman86 Pƙed 3 lety

    I like how you're sysinct, show visual stuff to help people like me with ADD stay on task, and explain things, as opposed to "do this, do this and do this!"

    • @fillman86
      @fillman86 Pƙed 3 lety

      that being said, I found this to be more useful, instead of getting button presses -
      float horizontal = Input.GetAxisRaw("Horizontal");
      float vertical = Input.GetAxisRaw("Vertical");
      Vector3 direction = new Vector3(horizontal, 0f, vertical);
      if (direction.magnitude >= 0.1f)
      {
      animator.SetBool("isWalking", true);
      }
      if (direction.magnitude

  • @Tapolcsanyi1
    @Tapolcsanyi1 Pƙed 2 lety

    usually these tutorials dont get into the specifics of each setting and what they do, but DAYUM yours was so helpful. keep it up blood.

  • @JimmyDeLock
    @JimmyDeLock Pƙed 3 lety +10

    Dude, seriously...best animation tutorials on CZcams. You're so thorough, I feel like I actually have a shot at getting this. Thank you!

    • @iHeartGameDev
      @iHeartGameDev  Pƙed 3 lety +1

      Thanks so much Nathan! You got this đŸ’Ș

  • @kendavis4704
    @kendavis4704 Pƙed 3 lety +1

    Great tutorials, thank you, they are helping me a lot in learning Unity animation for my college project.

  • @r3dbvll
    @r3dbvll Pƙed 3 měsĂ­ci

    absolutely amazing tutorial! good job

  • @Thykothaken
    @Thykothaken Pƙed 3 lety

    Crystal clear and excellently explained. 5/5 thumbs up

  • @ericvivianmatthews
    @ericvivianmatthews Pƙed 3 lety

    learned so much from just one video. You are so good at explaing the coding parts too so easy to understand.

  • @morganw2535
    @morganw2535 Pƙed 3 lety

    Awesome! Finally someone that knows how to code properly.

  • @samirkazah302
    @samirkazah302 Pƙed 9 měsĂ­ci

    Just what I needed to bring my character to life, thank you so much!

  • @hans823
    @hans823 Pƙed 11 měsĂ­ci

    Your tutorials are incredibly awesome! Thank you

  • @ThousandAnt
    @ThousandAnt Pƙed 4 lety

    Great video Nicky! Clean and well presented with good info. Keep it up!

  • @joseguedes1421
    @joseguedes1421 Pƙed 3 lety

    Keep it up dude, you have relatively few subscribers at the moment but your videos are extremely high quality and your channel will grow immensely for sure

  • @brandonfigueroa2800
    @brandonfigueroa2800 Pƙed 3 měsĂ­ci

    This was extremely enlightening!

  • @nostalgiagameruk5103
    @nostalgiagameruk5103 Pƙed 2 lety

    Amazing tutorial nice way to clean up the code for performance also. I just used this on my weapons works perfectly! Thank you

  • @victor1102
    @victor1102 Pƙed 2 lety +1

    Nicky, love your way of teaching, presenting and video editing so much! You are a god send for us Unity learner, cheers!

  • @undercasual5363
    @undercasual5363 Pƙed 3 lety

    thank you so much other tutorials just aren't very diverse and really focus on one type of character thank you

  • @kidkouga92
    @kidkouga92 Pƙed rokem

    I just want to say, it's been 2 years and this is incredibly helpful

  • @009raptor
    @009raptor Pƙed rokem +1

    Just wonderful! You've done a great job here. Easy to follow. I myself am a scientist focusing on wearable motion sensing research, and working on project for gamification of body movements. This series has been a "pivot" :P in my learning process of Unity engine.

  • @Redsun0000
    @Redsun0000 Pƙed 3 lety +3

    Amazing tutoriel very clean nice and well explain ! You deserve to have more subscriber :D

  • @hassangaming4590
    @hassangaming4590 Pƙed 4 lety +2

    Love the work you have done its really very clean and quick you got yourself a new subscriber and please keep going i would love to see adv player movement like slide double jump wall run with animations

  • @ShinyParrot277
    @ShinyParrot277 Pƙed 7 měsĂ­ci +1

    Thanks for the awesome tutorial!

  • @okaforsomtoo4803
    @okaforsomtoo4803 Pƙed 2 lety

    I'm just watching this and it is really really easy to understand. Thank you

  • @timmydube4379
    @timmydube4379 Pƙed 4 lety

    Great videos, can’t wait for part 3

  • @aob3366
    @aob3366 Pƙed 2 lety

    phenomenal. phenomenal

  • @systemkproductions7779
    @systemkproductions7779 Pƙed 2 lety +1

    Amazing tutorial! I am an aspiring game developer really confused with this, so your tutorials helped SO MUCH

  • @LamNguyen-sy2bv
    @LamNguyen-sy2bv Pƙed 4 lety

    Thank you for your detail and easy to understand tutorial. Keep it up!

  • @vsdsas
    @vsdsas Pƙed 3 měsĂ­ci

    bro has been saving life since 2020 this is the best tutorial i am beginner and it help me a lot a save time of searching i am going to watch all your video form now one i am sure it will be much help full

  • @mrdev554
    @mrdev554 Pƙed 10 měsĂ­ci

    the best tutorial series in the world

  • @thiccus
    @thiccus Pƙed 3 lety

    The quality and the way you explain things i thought u are a 1m sub CZcamsr. You really deserve more . Tutorial was really helpful. Thanks

  • @RaulCesarAdolfo
    @RaulCesarAdolfo Pƙed 2 lety +1

    You're amazing, these videos are helping me a lot, thank you!

  • @thisithakavinda7450
    @thisithakavinda7450 Pƙed rokem

    Maaaan you are the best❀ Saved my day âœŒđŸŒ

  • @Video-ep4ij
    @Video-ep4ij Pƙed 3 lety +1

    Your videos are very high quality which makes me disable my adblocker and watch all ads till the end :)

  • @gabrielkuklinski9806
    @gabrielkuklinski9806 Pƙed 2 lety

    Nicky, this is gold content. Thanks for this!

  • @Karl_08
    @Karl_08 Pƙed 7 měsĂ­ci

    Thank you for this Tutorial. You explain very well!

  • @Nick-rq4gy
    @Nick-rq4gy Pƙed 2 lety +1

    Thank you for making these videos, love it!đŸ„‡đŸ†đŸ™‹â€â™‚ïž

  • @ErickSntM
    @ErickSntM Pƙed rokem

    Amazing Tutorial !!

  • @santiagorodriguezsaura9418

    awesome tutorial series, keep up the good work!

  • @shreddev
    @shreddev Pƙed 3 lety

    100% perfect, thanks so much for making this video this helped me a ton.

  • @Bizarium_
    @Bizarium_ Pƙed 3 lety

    Wow this video is just amazing, at the end you really feel that you learned a lot

  • @Chezzeburga
    @Chezzeburga Pƙed rokem

    well made tutorial! thank you!

  • @Snowzter
    @Snowzter Pƙed 3 lety

    Very good guide! Helped me understand unity animations and create animations to my fps game!

  • @vanshrana9508
    @vanshrana9508 Pƙed rokem

    This is an amazing series brother thanks a lot for this :D

  • @Oleg_UE5
    @Oleg_UE5 Pƙed 2 lety

    Great series of tutorials! thank you very much!

  • @TheMusicChanneljakerocks
    @TheMusicChanneljakerocks Pƙed 3 lety

    Awesome video. Thank you. The code worked for me. Now I can move onto the next step in my game.

  • @Drblobfisch
    @Drblobfisch Pƙed 3 lety

    I needed this.
    Thanks mate

  • @iriskorot1935
    @iriskorot1935 Pƙed 2 lety

    This is such a great tutorial! Definitely simplifies things I had a lot of trouble with.

  • @murmuttajaa4233
    @murmuttajaa4233 Pƙed 2 lety

    I love the sound effect when you present a solution 😆

  • @RuanSmitSA
    @RuanSmitSA Pƙed 4 lety

    Loving the series :D I recommend having a slight pause before you transition from code to another screen so I/we dont have to pause the video like Flash. Keen to see the next video =3