Brains AI
A modular AI system for Unity that adds patrolling, detection, and tactical cover behavior—perfect for stealth, shooter, or rpg games.
by Ultrabolt.dev
★★★★★ star rating
Price History +
🔍 Brains AI – Modular Tactical AI System for Unity
Brains AI is a smart, modular AI framework built for Unity that simulates realistic and tactical enemy behaviors such as patrolling, detection, alert responses, and cover-seeking combat. Whether you're making stealth games, tactical shooters, or AI-driven simulations, Brains AI gives you flexible tools to bring your NPCs to life.
🧠 Key Features
▶️ Base AI System
- Smart State Machine: Smoothly transitions between Idle, Patrol, Alerted, and Searching states.
- Field of View (FOV): Detects targets within a cone or radius; can also detect threats from behind.
- Chase and Distance Control: Pursues targets with an adjustable stopping distance—ideal for melee or ranged AI.
- AI Communication: Alerts nearby agents and triggers coordinated responses.
- Search Behavior: Actively searches for targets if visual contact is lost.
🛡️ Tactical AI (Advanced Behavior)
- All base features included.
- Cover System: Finds safe spots not visible to the target.
- Peek-and-Hide Logic: Periodically peeks out to track or shoot, then hides again.
- Smart Decision-Making: Alternates intelligently between hiding and engagement.
🧰 Editor & Utility Tools
🛠️ Patrol Path Editor
- Draw and manage patrol paths in-scene.
- Supports Looped and Back & Forth modes.
🗺️ Tactical Grid & Spot Visualization
- Auto-aligns with NavMesh.
- Visual preview of Safe (green) and Dangerous (red) spots.
- Optional 3D grid support for multi-level navigation.
🎯 Custom Utilities (Static Methods)
- FOV & circle gizmo drawing
- Min-max range display
- Clean, organized custom inspectors with foldouts and headers
✅ Requirements
- Requires Unity’s AI Navigation (NavMesh) system.
(Ensure it’s enabled via the Package Manager or under Window > AI > Navigation.)
💬 Integration Tips
- Use UnityEvents to trigger alarms, audio, or UI when a target is seen.
- Easily integrate your own animations using Animator state parameters.
- Supports dynamic environments using NavMeshObstacle and NavMeshModifier.
🎓 Created by Ultrabolt
🛠️ Support and updates available via the Unity Asset Store