How To Visually Build NPC AI (Behavior Tools For Unity Tutorial)

Опубликовано: 31 Июль 2026
на канале: Game Dev Ame
86
2

A complete walk through on how to install and easily create NPC behavior trees using Behavior Tools For Unity.

Get Behavior Tools For Unity on the Unity Asset Store:
https://assetstore.unity.com/packages...

This tutorial covers how to build a simple NPC that patrols around a scene, chasing after and destroying any enemies along it's path.

We use behavior graph system along with nodes from Behavior Tools For Unity to create both the NPC logic itself and a spawner for the enemies without writing a single line of code.

And finally we use Behavior Gizmos to visualize and automatically update values in the blackboard of both behavior graphs. Showing the sphere the NPC detects enemies in, and the area in which enemies are allowed to spawn.

Chapters
0:00 Introduction
0:18 Installation
1:10 Scene Overview
1:35 Patrol Behavior
8:38 Spawning Enemies
17:15 Behavior Gizmo: Visualizing and Setting the Spawn Area
19:23 Detecting, Chasing, and Destroying Enemies
26:15 Behavior Gizmo: Detection Radius
27:26 Outro

Documentation
Behavior Tools For Unity: https://github.com/LuminousAme/Behavi...
Behavior Graph: https://docs.unity3d.com/Packages/com...