
A modular AI system for Unity that adds patrolling, detection, and tactical cover behavior—perfect for stealth, shooter, or rpg games.🔍 Brains AI – Modular Tactical AI System for UnityBrains 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 SystemSmart 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 EditorDraw and manage patrol paths in-scene.Supports Looped and Back & Forth modes.🗺️ Tactical Grid & Spot VisualizationAuto-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 drawingMin-max range displayClean, organized custom inspectors with foldouts and headers✅ RequirementsRequires Unity’s AI Navigation (NavMesh) system. (Ensure it’s enabled via the Package Manager or under Window > AI > Navigation.)💬 Integration TipsUse 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 StoreModular AI framework with extendable logicSmart state machine (Idle → Patrol → Alerted → Searching)Field of View (FOV) system with visual detection, rear detection, and UnityEvent supportChase logic with optional distance maintenance (ideal for ranged or friendly agents)Built-in communication system between AI agentsTactical AI mode that uses cover and peek logic for stealthy engagementsTactical Grid system with NavMesh integration for safe and danger spot evaluation3D grid support for multi-floor navigationIn-scene Patrol Path Editor with loop and back-and-forth supportCustom Inspector tools for organized, clean workflowStatic utility methods for drawing gizmos and enhancing custom inspectors