EASY way to add AI in Unity 6 - Behavior Package Tutorial

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 48

  • @SunnyValleyStudio
    @SunnyValleyStudio  28 днів тому +4

    You can find example Demo project for this package at assetstore.unity.com/packages/templates/tutorials/behavior-demo-for-unity-298313 👍

  • @Icewind007
    @Icewind007 25 днів тому +3

    Ok, just tried this, and I already really like it! I was even half way into creating my own AI system and was getting overwhelmed, and I recreated it in this so much more cleanly.

    • @SunnyValleyStudio
      @SunnyValleyStudio  21 день тому

      Yeah I get the same impression. This system really helps me to focus on the ai logic instead of creating an AI framework to run the logic 👍

  • @DorisRomano-e5b
    @DorisRomano-e5b 27 днів тому +3

    This tutorial really boosted my knowledge!

  • @CleosetricVlyers
    @CleosetricVlyers 12 днів тому +1

    Oho... Im gonna check this out

  • @purnabratakar7176
    @purnabratakar7176 25 днів тому +1

    Could you make more in-depth tutorial on this package for Conditionals, Aborts and the FSM switch implementation? This package is very similar to BD and I would like to learn more, but reading through docs is really not my thing. Great Video.

    • @SunnyValleyStudio
      @SunnyValleyStudio  21 день тому

      I will definitely have a longer series about AI in a 2D game later this month 👍I might tackle a 3d project afterwards.

  • @ApollousasBear
    @ApollousasBear 27 днів тому +1

    What sprites are you using at the start of the video? I am sure I have seen them somewhere before but I can't quite find them.

  • @정동우-n2x
    @정동우-n2x 28 днів тому +2

    Cool!

    • @SunnyValleyStudio
      @SunnyValleyStudio  27 днів тому

      Thanks for the comment 🙂

    • @정동우-n2x
      @정동우-n2x 27 днів тому

      @@SunnyValleyStudio I've bought all your courses, and I'm thinking that this AI course will also come out. I'm waiting.

  • @nibiruimagineering
    @nibiruimagineering 27 днів тому +1

    Oh cats! I gotta looking to this

  • @fkjaha
    @fkjaha 28 днів тому +3

    Since you have spent more time with the asset, doesn't it have any downsides or problems? (comparing to writing custom state machines)

    • @SunnyValleyStudio
      @SunnyValleyStudio  27 днів тому +3

      Well I had some trouble getting used to it. Probably should have created "Condition" instead of "Action" for TargetDetector check. I have created a few FSM implementations in the code myself and used Behavior Designer asset. I don't like relying on other assets so I preferred scripting my ai. Now with this package being officially supported I think that I would chose to spend time learning it and using as my primary way to create ai. Does this help?

  • @GHO166
    @GHO166 28 днів тому

    thank you

  • @forcesoftheevil9252
    @forcesoftheevil9252 28 днів тому

    UniTech developed it especially for me, btw 😂

  • @LunarKingYT
    @LunarKingYT 13 днів тому

    Quick question. What's the best way to go about doing this in a 2D platformer? Where the rotation basically doesn't exist. I tried implementing the patrol but it rotates the sprite on the Y axis, causing it to fall through the floor.

    • @SunnyValleyStudio
      @SunnyValleyStudio  10 днів тому

      What sucks about those systems is that for 2D games you need to code your own logic for those actions. They seems to prioritize 3D projects with NavMeshSystem and this .

  • @lee1davis1
    @lee1davis1 28 днів тому +1

    Did you research how to use this new feature or did unity set it all up like a package.?

    • @SunnyValleyStudio
      @SunnyValleyStudio  27 днів тому +1

      Its a package. That being said creating those branches requires some research. The solution that I show here is probably not the most optimal because I am still learning how to use this package myself. Unity has just released an example project that I have linked din the top comment. Does this answers your question?

    • @lee1davis1
      @lee1davis1 27 днів тому

      @SunnyValleyStudio yes. I was wondering what the prerequisites for behavior trees was. I know a little.

  • @palanolho82
    @palanolho82 25 днів тому

    Do you know if this works with other navigation systems like A* Pathfinding asset ?

    • @SunnyValleyStudio
      @SunnyValleyStudio  21 день тому

      I doubt that there is a premade integration. You can definitely create your own nodes and integrate both systems 👍

  • @reqi589
    @reqi589 27 днів тому

    Thanks for the tutorial, is it also working with a 2d platformer and if yes could you do a tutorial?

    • @SunnyValleyStudio
      @SunnyValleyStudio  26 днів тому +2

      It works with all types of projects. You just need to specify the logic 🙂
      I am preparing a step-by-step tutorial about it. I just need to work a bit more with this asset. 👍

  • @NguyễnTrung-s9c
    @NguyễnTrung-s9c 27 днів тому

    Hi Bro. How about performance of this package? Can you test with larger object at runtime plz. Thanks

    • @SunnyValleyStudio
      @SunnyValleyStudio  27 днів тому +2

      Yeah I am going to try creating a larger project and do a step-by-step series about it. I will research performance as well 🙂

  • @thomasshaw4855
    @thomasshaw4855 27 днів тому

    The million dollar question...can you update the graph while in playmode and have the behaviours update in realtime (without having to jump in and out of playmode).

    • @SunnyValleyStudio
      @SunnyValleyStudio  26 днів тому

      Hey! I don't think you can. I am pretty sure that you can swap graphs at runtime so you could potentially create duplicate graph and change something there - but I am not sure it you can and if at this point it isn't easier to just stop and start the project again.

  • @ECAKJ
    @ECAKJ 25 днів тому

    Do you have a video on 2D ai. I’m kind of new and thought navmesh was 3D

    • @SunnyValleyStudio
      @SunnyValleyStudio  21 день тому

      Yeah navmesh is 3d. I will have work on a more step-by-step tutorial just after Crazy Games game jam ends at the end of this week 🙂

  • @darkwavepaint
    @darkwavepaint 28 днів тому +1

    I wear glasses specifically for the colors of Visual Scripting. :)

    • @SunnyValleyStudio
      @SunnyValleyStudio  21 день тому

      IMO it's great that there is some color and design to this tool 🙂

  • @Baaatz07
    @Baaatz07 28 днів тому

    Finally 🗿

    • @SunnyValleyStudio
      @SunnyValleyStudio  21 день тому +1

      Yeah I am too super excited about finally having a native solution for AI in unity.

    • @Baaatz07
      @Baaatz07 21 день тому

      Could you maybe make a tutorial on how to use this feature in 3d? Or is it the same process

  • @sasdasu00dfsdfardo
    @sasdasu00dfsdfardo 28 днів тому

    big if true

    • @SunnyValleyStudio
      @SunnyValleyStudio  21 день тому

      I think its worth to give it a shot. Free is a fair price after all 🙂

  • @dertobbe1176
    @dertobbe1176 28 днів тому

    More graphs 😩

  • @MAGNETO-i1i
    @MAGNETO-i1i 24 дні тому +1

    "EASY"

  • @TusharDharashivkar-p3e
    @TusharDharashivkar-p3e 28 днів тому

    What's the AI in it? It seems more like visual scripting..

    • @SunnyValleyStudio
      @SunnyValleyStudio  27 днів тому

      I supposed you can say that. I have implemented FSM, Context Steering and Behavior Tree through scripts and I would definitely preferer using this package instead to give some behaviors to my NPCs

    • @matt46O
      @matt46O 20 днів тому

      it's AI as in Video game AI
      if you want AI like chatgpt for unity there's muse