Animator Transition Interrupt Sources, Explained | Unity Tutorial

Поделиться
HTML-код
  • Опубликовано: 18 дек 2024

Комментарии • 38

  • @MadJoyStudio
    @MadJoyStudio Год назад +8

    Thanks for tackling this seemingly obscure but actually important topic. Unity's Animator doesn't have excellent UX, so it's nice when folks help unbox these topics well.

  • @SomeHumbleOnion
    @SomeHumbleOnion 2 месяца назад +1

    This was a huge help man! Was trying to get a double jump animation to be more responsive, instead of having to wait for the first jump animation to finish and THEN do the double jump animation when players rapidly hit the double jump. Just setting the Interruption Source to Next State fixed this issue completely!

  • @darryljf7215
    @darryljf7215 6 месяцев назад +1

    I searched for Unity animation controller interruption source because I needed to get an animation to interrupt and found your video. Nicely explained. I understand it now. And it will help me interrupt some of my animations. I'll check out your videos too.

  • @Betruet
    @Betruet 2 года назад +4

    Its crazy I just solved this in my project last night but your explanation was really nice to have. I also use animation events so I was getting really wacky behavior. Thanks!

  • @MiTheMer
    @MiTheMer Год назад +1

    Thank you, since I purposefully have slow transitions in a less combattitive game I ran into this problem early. Your video was really helpful!

  • @juanpicafi
    @juanpicafi 9 месяцев назад +1

    Thank you very much! You helped me fix my problem in a minute! XD

  • @paritoshmishra2572
    @paritoshmishra2572 2 года назад

    Awesome video. Was looking all over for interruption source related info. You are really helping out the new devs my friend.

    • @LlamAcademy
      @LlamAcademy  2 года назад

      I appreciate that 🙏. This was clearly a big pain for me too 😅

  • @kanka2122
    @kanka2122 Год назад +1

    Finally someone explain this !

  • @ronigleydsonvilasnovas8067
    @ronigleydsonvilasnovas8067 2 года назад +1

    excellent video. I confess that when it comes to using the animator I'm not completely noob, but there are always new things to be learned, like the ones in this video.

  • @while.coyote
    @while.coyote Год назад +1

    This was so helpful!

  • @snaileri
    @snaileri 8 месяцев назад +1

    Very helpful! Thanks!

  • @ryanaflalo8245
    @ryanaflalo8245 Год назад +1

    Awesome video! Helped a ton! Just earned a sub.

  • @durvids474
    @durvids474 2 года назад +1

    Great stuff as always! Thank you for this video, super useful!

  • @levayv
    @levayv Год назад +1

    Thanks , especially for intro ;)

  • @oredi
    @oredi 5 месяцев назад

    Those states, affect only that list? I usually don't use it, but it seems those NEED the list to work. Is that the case? Ty for the video btw.

  • @martingarant
    @martingarant Год назад

    Where can I find infos about Referenced Animator Controller in another Animator Controller?

  • @SnakeEngine
    @SnakeEngine 10 месяцев назад

    Thanks. Anyone an idea if that animation stuff is easier to handle in Unreal Engine?

  • @alm3890
    @alm3890 Год назад

    thanks for this explanation , i have a similar issue, but I haven't found a solution yet I have a blend tree and a state. When I press the left click, it triggers the state using a crossfade function. I can interrupt the state with another state, but if it's a blend tree, it doesn't interrupt. Do you have any solutions or tips for this problem? + do you have a discord server

    • @LlamAcademy
      @LlamAcademy  Год назад +1

      Working on a Discord! I haven't encountered that issue yet so unfortunately I don't have an idea about it :(

  • @TerminalJack505
    @TerminalJack505 2 месяца назад

    Here's a little advice if you play around with this: Put the following line of code in a script. This will slow time way down so that you will have plenty of time to set the triggers during the transitions.
    Time.timeScale = 0.025f;

  • @ryanaflalo8245
    @ryanaflalo8245 Год назад

    I have one question, I made a shooting animation for my game that I am developing and sometimes the animation is sped up and at other times, the animation is normal. It should play at a constant speed. Do you know why this occurs! Thanks!

    • @LlamAcademy
      @LlamAcademy  Год назад

      Hmm... Hard to say. The Animator by default always plays them at the same speed. You can adjust the playback speed with the Animator.speed property: docs.unity3d.com/ScriptReference/Animator-speed.html
      and in the Animator panel you can adjust the speed of a given State: docs.unity3d.com/Manual/class-State.html
      Those are the only two I know that impact the playback speed other than adjusting the Time.timeScale

  • @Indiechicha249
    @Indiechicha249 2 года назад

    Let if mouse1 settrigger(punch). & Mouse2 settrigger (kick). If player's punch animation is not finished I want kick trigger to be false while mouse2 is pressed,how can i achieve that.

    • @LlamAcademy
      @LlamAcademy  2 года назад

      If you do not want interrupts, you would use "NONE" so the transition cannot be interrupted. You can then query the Animator state with animator.GetCurrentStateInfo() and reset your kick trigger if the current state is punch

    • @Indiechicha249
      @Indiechicha249 2 года назад

      @@LlamAcademy right now i am disabling the input while punch animation is not finished is it ok.its swipe based fighting game for mobile

  • @germiyanbey1
    @germiyanbey1 Год назад +4

    Beneficial video, but second part (Next state) was very confusing for me and difficult to understand by words alone. So you could teach them (Next, Current & Next and Next & Current) with a demonstration too. Apart from these, you talk really fast (as this is a video for learning purposes, speed should be slower to understand better). But thank you very much for enlightening us on a subject which information is little.

    • @LlamAcademy
      @LlamAcademy  Год назад +1

      Thank you for the feedback, I will do better in future videos.

    • @germiyanbey1
      @germiyanbey1 Год назад +1

      @@LlamAcademy Thank you!

  • @fabianobersovszky6987
    @fabianobersovszky6987 6 месяцев назад

    Isn’t the channel’s name a bit confusing?

  • @nileshkumawat6730
    @nileshkumawat6730 2 года назад

    Hey, can you tell me how to find nearest target by navmesh cost (cost based nearest target )

    • @LlamAcademy
      @LlamAcademy  2 года назад +1

      I already have a video that will do that here: ruclips.net/video/BFT8Fa4ZsMk/видео.html

    • @nileshkumawat6730
      @nileshkumawat6730 2 года назад

      @@LlamAcademy thanks i don't know about that video 😅

  • @zanagi
    @zanagi 11 месяцев назад

    bruh if only i knew this earlier

    • @LlamAcademy
      @LlamAcademy  11 месяцев назад

      Me too man…meee too

  • @bobjames1992
    @bobjames1992 Год назад +3

    I appreciate the effort here but you made confusing subject even more confusing. Try slow things down a little.