Back to Trending
RepositoryC#FRFrance
MinaPecheux

MinaPecheux/UnityTutorials-BehaviourTrees

The code for a short tutorial on how to create a simple guard AI using behaviour trees in Unity/C# (in text or video format)!

108stars
17forks
0issues
0views

[Unity/C#] A simple behaviour tree

Mina Pêcheux - November 2021

How can we create a simple guard AI using the behaviour tree pattern? Let's discover more in this video/text tutorial: "How to create a simple behaviour tree in less than 30 minutes" :)

You can read it in text format on Medium, or watch it on Youtube.

thumbnail

In this less than 30 minutes-tutorial, I'm discussing what behaviour trees are, why they are often better at modelling complex systems than finite state machines and how we can apply this classic pattern to the design of a simple guard AI to have it patrol, target enemies and attack!

This Github repo contains the scripts that are coded in the tutorial, as well as all the resources (imported models, materials, particle systems...) that are used throughout this episode :)

demo

Similar Projects

Discover other similar projects and AI models.

RepositoryC
Tencent/xLua

xLua is a lua programming solution for C# ( Unity, .Net, Mono) , it supports android, ios, windows, linux, osx, etc.

10.2k
Nov 21, 2025
RepositoryTypeScript
openclaw/openclaw

The AI that really does things. Any OS. Any Platform. The lobster way. 🦞

395.6k
Dec 2, 2026
RepositoryShell
obra/superpowers

An agentic skills framework & software development methodology that works.

331.2k
Nov 28, 2026
RepositoryTypeScript
firecrawl/firecrawl

Firecrawl is the knowledge infrastructure to make your agents smarter. It connects your agents to the web, and to Alexandria, our library of everything else.

215.1k
Dec 2, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

188.2k
Nov 29, 2026
RepositoryC#
Unity-Technologies/ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.

19.9k
Nov 25, 2026
RepositoryC#
Perfare/AssetStudio

AssetStudio is a tool for exploring, extracting and exporting assets and assetbundles.

15.6k
Dec 8, 2022
RepositoryC#
Cysharp/UniTask

Provides an efficient allocation free async/await integration for Unity.

11.3k
Oct 6, 2026
RepositoryC#
egametang/ET

Unity3D Client And C# Server Framework

10.0k
Nov 23, 2026