In this tutorial repository and accompanying video you can see a full, end to end implementation of an enemy AI with 4 attacks using a Behavior Tree framework, AI Tree.
As of the Navigation Components 1.1.3, NavMesh.CalculateTriangulation()
does not properly generate NavMeshTriangulation.areas
per Navigation Area. Showing navigation areas therefore only works if you build using the legacy system, which does not support different navigation meshes per NavMeshAgent type.
This repo uses AI Tree as the Behavior Tree framework. Since this is a paid asset it cannot be included. It also uses a Quirky Llama model which is less important, but the animation names that are played will need to be updated to whatever animations you choose to use. If you do not own at least AI Tree, you will have to reconstruct the Behavior Tree and modify the code to match with your behavior tree framework of choice.
- Import AI Tree and Quirky Llama (or replace llama with your 3d model)
- Import Unity Particle Pack (free)
- Click play!
The package manifest includes Navigation Components already.
This tutorial is Sponsored by Southern New Hampshire University. If you're interested in leveling up your gamedev skillset, consider getting an affordable, accredited degree in Computer Science or Game Design & Development from SNHU. You can go to https://snhu.edu/llamacademy to see what the current average annual salary for a game developer programmer is and learn how you can get started!
Have you been getting value out of these tutorials? Do you believe in LlamAcademy's mission of helping everyone make their game dev dream become a reality? Consider becoming a Patreon supporter and get your name added to this list, as well as other cool perks. Head over to the LlamAcademy Patreon Page, join as a YouTube Member, or even become a GitHub Sponsor to show your support.
- Andrew Bowen
- YOUR NAME HERE!
- Bruno Bozic
- YOUR NAME HERE!
- AudemKay
- Matt Parkin
- Ivan
- Reulan
- Iffy Obelus
- SolarInt
- Perry
- YOUR NAME HERE!
- Trey Briggs
- Matt Sponholz
- Dr Bash
- Tarik
- Sean
- ag10g
- Elijah Singer
- Lurking Ninja
- Josh Meyer
- Ewald Schulte
- Dom C
- Andrew Allbright
- AudemKay
- Claduiu Barsan-Pipu
- Ben
- Xuul
- Christian Van Sttenwijk
- Michael Creel
- Joseph Janosko
- Joao Henrique Machado Silva
- YOUR NAME HERE!
- Patrizio Veglia
- Travis Blue
Interested in other Topics in Unity?
- Requires Unity 2022.3 LTS or higher.
- Universal Render Pipeline
Some links in this readme may contain affiliate links which, at the time of purchase, at no additional cost to you, gives me a small portion of the purchase.