NEW AI Navigation - Unity 2023

Discover the power of Unity's new AI Navigation system in this in-depth tutorial. Join me as I walk you through a hands-on demo, breaking down each component of Unity's AI Navigation system, and explaining how they seamlessly function together. Whether you're a seasoned developer or just starting out, this guide is tailored to help you understand and implement Unity's AI Navigation in your own game development projects. Dive into the world of pathfinding, AI-driven characters, and sophisticated navigation meshes. Don't miss out on unlocking the potential of Unity's latest navigation tools. Ideal for game developers, Unity enthusiasts, and anyone eager to enhance their skillset with AI-powered navigation.
AI Controller Script:
github.com/Reedster12/AI-Cont...
0:39 Import Unity AI Navigation Package
1:23 Add a NavMesh Surface
4:37 Modify layers
6:02 Setup NavMesh Agent
11:28 Add NavMesh Obstacle
14:02 Build a height-restricting pathway
14:46 Setup new NavMesh Agent type
15:43 Setup 2nd NavMesh Surface
17:45 Using NavMesh Modifiers

Пікірлер: 53

  • @zagstrug9053
    @zagstrug90537 ай бұрын

    Thanks for mentioning the Unity version & package you're using! That's a really important step in my opinion which many tutorials just skip

  • @FAR-Gaming

    @FAR-Gaming

    7 ай бұрын

    Appreciate the feedback! 🙂

  • @FreeHelm
    @FreeHelm Жыл бұрын

    This was really clear and informative, thanks!

  • @FAR-Gaming

    @FAR-Gaming

    Жыл бұрын

    Glad it was helpful!

  • @Leito4Gaming
    @Leito4Gaming2 ай бұрын

    Excelent video tutorial! Thank you very much!

  • @archmagesalamar1377
    @archmagesalamar1377 Жыл бұрын

    Great tutorial. Looking forward to more about AI navigation.

  • @FAR-Gaming

    @FAR-Gaming

    Жыл бұрын

    Thank you! Any suggestions on something you'd like to see more about?

  • @androvictrayo-dy7eh
    @androvictrayo-dy7eh Жыл бұрын

    wow, this is a good tutorial , it is really basic and easier to understand

  • @FAR-Gaming

    @FAR-Gaming

    Жыл бұрын

    Thanks, glad you liked it!

  • @NakedApeGaming
    @NakedApeGaming11 ай бұрын

    This was great! Just what I needed. Thanks!

  • @FAR-Gaming

    @FAR-Gaming

    11 ай бұрын

    You're welcome!

  • @evancheng9393
    @evancheng93937 ай бұрын

    thank you sir

  • @Sylfa
    @Sylfa11 ай бұрын

    Just a tip, you don't need to put the characters on their own layer, anything that is a NavMeshAgent is excluded from the NavMeshSurface. It's essentially assumed that any agent would not count as an obstacle, if you wanted them to be one you would have to add the NavMeshObstacle to them.

  • @FAR-Gaming

    @FAR-Gaming

    11 ай бұрын

    I tested this out and you're right! Thanks for the tip!

  • @Sylfa

    @Sylfa

    11 ай бұрын

    @@FAR-Gaming You're welcome! It seems early videos from unity about the navigation system mentioned this feature, but it never made it into the manual. So anyone who tries to learn it *now* would have to guess it works like that or look at the oldest videos that are partially outdated now.

  • @studioshitaketakashita7093
    @studioshitaketakashita7093 Жыл бұрын

    Please more Unity tuts big up!

  • @athithyaparamesh8251
    @athithyaparamesh825111 ай бұрын

    Thank you!

  • @FAR-Gaming

    @FAR-Gaming

    11 ай бұрын

    You're welcome!

  • @sukandakiangkai
    @sukandakiangkai9 ай бұрын

    Thank u 🥰🥰🥰

  • @FAR-Gaming

    @FAR-Gaming

    9 ай бұрын

    You’re welcome!

  • @UrbestM8
    @UrbestM88 ай бұрын

    W tutorial 👍

  • @jihadrouani5525
    @jihadrouani5525 Жыл бұрын

    I was used to the old navigation system this one seem more powerful and allows for a higher level of control, although I wonder if the pathfinding itself or the performance of this new system is improved over the old one...

  • @FAR-Gaming

    @FAR-Gaming

    Жыл бұрын

    I agree. I assume the pathfinding still works about the same performance wise, but them making this a package of its own instead of including it natively in unity will really allow for updates/improvements without having to push a whole new Unity version.

  • @studioshitaketakashita7093

    @studioshitaketakashita7093

    Жыл бұрын

    @@FAR-Gaming assigning nav static suck'd azz lol

  • @jorgeelskizo2017
    @jorgeelskizo201711 ай бұрын

    really nice tuturial. Could you create a tutorial while using ai navigation, the ai follows the path to the player and hits if is close enough? ranged or melee

  • @FAR-Gaming

    @FAR-Gaming

    11 ай бұрын

    Great suggestion! I'll start working on this!

  • @FAR-Gaming

    @FAR-Gaming

    10 ай бұрын

    Tutorial for getting the AI to follow the player will be live first thing in the morning. AI attacking the player will hopefully be up within a couple weeks. Thanks again for the suggestions!

  • @jorgeelskizo2017

    @jorgeelskizo2017

    10 ай бұрын

    @@FAR-Gaming Thanks!

  • @dirivial_
    @dirivial_10 ай бұрын

    This was really helpful, thank you for making it! Question: Would it be possible to have a priority on certain areas? Imagine smooth rock vs rubble, where the smooth rock would be preferred and could for example grant extra movement speed to the agent traversing it? I just started making an RTS-ish game where this mechanic is a pretty important aspect.

  • @dirivial_

    @dirivial_

    10 ай бұрын

    Okay I just read the documentation and yes, this seems possible.

  • @FAR-Gaming

    @FAR-Gaming

    10 ай бұрын

    Yup! On the NavMesh Surface component where it says "Default Area" and it's set to Walkable, click the drop down and select "Open Area Settings". In there you can make multiple surface types and set their "cost". So you could make rubble have a cost of 5 and smooth rock be 1. And then the AI will only cross the rubble if 1) That's it's only choice OR 2) if the cost of going over the rubble is still cheaper than taking the long way around. Here's a video that explains cost really well. I hope this helps! kzread.info/dash/bejne/dGejwZuDg5nMf8Y.html

  • @dirivial_

    @dirivial_

    10 ай бұрын

    ​@@FAR-Gaming Thank you! 😀

  • @juleswombat5309
    @juleswombat53098 ай бұрын

    Thanks I got confused on the new Nav Mesh package. This helps. But annoyed at the additional UI clutter to the scene/game views.

  • @FAR-Gaming

    @FAR-Gaming

    8 ай бұрын

    A lot of that you can turn off in either the gizmos menu or with the little navmesh box that appears in the corner. Hope this helps! 🙂

  • @citycritteradventures7427
    @citycritteradventures74276 ай бұрын

    Great job. V clear, informative and gives a great base to get started with the nav package. Keep up the great work

  • @FAR-Gaming

    @FAR-Gaming

    6 ай бұрын

    Thank you!

  • @Alessio-z6x
    @Alessio-z6x23 күн бұрын

    I can't get the package

  • @user-ht8bd7ro1i
    @user-ht8bd7ro1iАй бұрын

    hi can you help me about the AI Navigation

  • @FAR-Gaming

    @FAR-Gaming

    Ай бұрын

    What’s up?

  • @mohsinanwaar5603
    @mohsinanwaar56035 ай бұрын

    Can anyone help me that when I bake my NavMesh My Player colliding isn't wqorking properly can anyone please help me ???

  • @FAR-Gaming

    @FAR-Gaming

    5 ай бұрын

    Would love to help but I’d need more info. Another option is posting your issue on one of the Unity reddit pages.

  • @moddyp4989
    @moddyp49899 ай бұрын

    when i click on window and ai it shows navigation and navigation obsolete but when i click navigation it only shows agent and areas and the obsolete one shows agent areas bake and object pls help

  • @FAR-Gaming

    @FAR-Gaming

    9 ай бұрын

    What are you needing help with? A lot of the options that used to be in a separate window (Window -> AI -> Navigation) are now built into the components that you attach to GameObjects. So the baking option is part of the NavMesh Surface Component you can add to your ground or navigable surfaces. And you can manage your AI Agent Types from the dropdown at the top of the NavMesh Agent component that you attach to a character. It'll give you an option to open Agent Settings. I hope this helps! Let me know if there's something else you'd like help with!

  • @moddyp4989

    @moddyp4989

    9 ай бұрын

    I need help fixing the tool because when i try to bake it it says that it bakes but when its done it does not show me@@FAR-Gaming

  • @FAR-Gaming

    @FAR-Gaming

    9 ай бұрын

    In the bottom right corner of your scene editor, is the box checked for it to show you navmeshs?

  • @moddyp4989

    @moddyp4989

    9 ай бұрын

    yes but when i click bake it does not work when i click window, ai and navigations it pops up without bake and object but the obsolete one shows them but does not show the navmesh when i bake it@@FAR-Gaming

  • @FAR-Gaming

    @FAR-Gaming

    9 ай бұрын

    Don't bake it from there. Add a NavMesh Surface component to your ground. At the bottom of that component with be a button to bake. Use that button instead.

  • @eyebegclip2890
    @eyebegclip289010 ай бұрын

    i dont found Ai Navigation. Help me plss

  • @FAR-Gaming

    @FAR-Gaming

    10 ай бұрын

    Are you trying to find the package to add it to your project? Go up to Window > Package Manager and type in AI Nav and should be the package that comes up. Make sure in the top left your searching through all the packages and not just the ones in your project.

  • @mohokhachai
    @mohokhachai10 ай бұрын

    When the new version released

  • @FAR-Gaming

    @FAR-Gaming

    10 ай бұрын

    The Unity AI Navigation package has been in the works for a while, but as of Unity Version 2022.2 the NavMesh components are no longer included by default and the AI Navigation package must be imported to your project separately.