BTGraph is a modern, production-ready Behavior Tree system for Unity that combines a powerful visual graph editor with a high-performance runtime engine. It is designed for developers who want clean architecture, scalable AI systems, and full control over execution flow—without relying on heavyweight frameworks or tightly coupled scripts.
Built from the ground up for modularity and long-term maintainability, BTGraph allows you to design, debug, and reuse AI logic as data-driven ScriptableObject assets, keeping gameplay code structured and easy to extend.
🚀 Modern Execution Architecture
Unlike traditional tick-only behavior tree implementations, BTGraph supports:
Event-Driven mode allows behavior trees to evaluate only when necessary, eliminating redundant per-frame reevaluations and improving performance in large multi-agent systems. Hybrid mode combines responsiveness with safety ticks for complex use cases.
This makes BTGraph suitable for:
🌳 Modular Subtree System
BTGraph includes a fully implemented Subtree architecture, enabling you to build reusable behavior modules that can be composed into larger AI systems.
Features include:
Subtrees make it easy to create reusable logic for patrol systems, investigation behavior, combat routines, dialogue trees, or ability execution.
🧬 Archetype-Based AI Templates
Define reusable AI templates using Archetypes, then safely instantiate them across your project.
Archetypes allow you to:
This makes BTGraph ideal for scalable game development and team workflows.
🗂 Data-Driven Blackboard System
BTGraph includes a robust Blackboard system for structured data sharing between nodes.
This keeps AI state management predictable and easy to debug.
🖥 Professional Visual Graph Editor
The BTGraph editor is built for clarity and speed:
The editor avoids clutter and focuses on usability, making it suitable for both rapid prototyping and production pipelines.
⚙ Performance & Build Safety
BTGraph is designed with runtime correctness and performance safety in mind:
This ensures stable performance in real production environments.
🎮 Ideal For
🧩 What Makes BTGraph Different?
BTGraph is not just a Behavior Tree editor—it is an architectural AI framework.
It emphasizes:
All without unnecessary boilerplate or heavy runtime overhead.