high-performance pathfinding system built for Unity using C# Jobs, Burst Compiler, and NativeCollections.
It supports 2D and 3D grids, multiple units in parallel, and custom traversal logic per agent.DescriptionPathfinding Agent is a high-performance pathfinding system for Unity designed to handle multiple AI agents efficiently using Unity's C# Job System, Burst Compiler, and Native Collections.The system supports both 2D and 3D grid-based navigation and allows developers to define custom traversal logic for different types of units such as characters that can walk, jump, climb, swim, crawl, or fly.Unlike traditional single-threaded pathfinding solutions, this package performs parallel path calculations across multiple agents, making it suitable for large simulations, strategy games, RTS games, and AI-heavy environments.The system is designed to be extensible and modular, allowing developers to integrate their own movement logic while using the provided high-performance pathfinding backend.Key FeaturesHigh Performance PathfindingUses Unity C# Jobs + Burst Compiler for multi-threaded pathfinding.Optimized with NativeCollections for low memory overhead.Supports parallel pathfinding requests for multiple agents.Flexible Grid SystemGeneric Grid architecture supporting both 2D and 3D navigation.Built-in world-to-grid conversion utilities.Efficient neighbor lookup and grid indexing.Customizable Agent BehaviourAgents integrate with the system by implementing the IUnit interface, allowing developers to define:Agent position and destinationMovement capabilities (walk, jump, swim, fly, crawl, climb)Custom movement statesTraversal costs and restrictionsTransform synchronization with Unity objectsParallel Path RequestsMultiple agents can request paths simultaneously using Burst-compiled jobs, making the system suitable for large numbers of AI units.Path OptimizationIncludes:Path retracingPath simplificationEfficient node traversalDebugging ToolsIncludes Gizmo-based debugging tools for visualizing:Navigation nodesGenerated pathsTraversal logicThese tools help quickly debug navigation behavior during development.How It WorksAdd the Surface component to your scene.Configure the grid size and node radius.Assign obstacle layers using Unity colliders.Implement the IUnit interface for your agent.Register the agent with the surface to begin pathfinding.The system will automatically process path requests using parallel Burst jobs.Included SystemsCore navigation grid supporting 2D and 3D environments.GridManages the navigation grid and agent registration.Surface ComponentDefines how agents interact with the pathfinding system.IUnit InterfaceBurst-compatible data structure used internally by pathfinding jobs.UnitData StructHandles A* pathfinding calculations.PathRequest JobRequirementsUnity 2023.3 or newer (tested up to Unity 6.3)C# Jobs SystemUnity packages:BurstCollectionsOptional:Cysharp UniTask (used in example workflows but not required)LimitationsWhile the destination is recalculated at runtime, the grid walkable areas and obstacle areas are only calculated onceSuitable ForRTS gamesSimulation gamesAI crowd systemsStrategy gamesLarge-scale NPC movement systemsSupportFor questions or technical support:Email: bluebilly111@gmail.comWhatsApp: +254741862123This asset does not include art assets or character controllers.Movement logic must be implemented by the user through the IUnit interface.Third-Party Content:This asset uses AI-generated textures created with Unity AI tools (Unity Muse).See Third-Party Notices.txt for details.Technical Specifications-Supported Unity VersionsUnity 2023.3 (LTS) or later.Full support for both URP (Universal Render Pipeline) and HDRP (High Definition Render Pipeline).-Supported PlatformsPC: Windows, macOS, LinuxMobile: Android, iOSConsoles: PlayStation, Xbox, Nintendo SwitchWebGL: Fully functional on WebGL buildsVR/AR: Supports Unity XR (Virtual Reality/Augmented Reality) development-Graphics API CompatibilityDirectX 11/12: Supports DirectX for Windows builds.OpenGL / OpenGL ES: Compatible with macOS, Linux, and mobile platforms.Metal: Fully supported on macOS and iOS devices.Vulkan: Supported on compatible devices for high-performance rendering-Required DependenciesThis asset relies on the following Unity packages:• com.unity.inputsystemUsed for handling player input in the included examples.• com.unity.2d.spriteRequired for rendering sprites used in the example scenes.• com.unity.2d.tilemapUsed for grid-based navigation examples.• com.unity.burstImproves performance of pathfinding calculations.• com.unity.collectionsProvides optimized native collections used by the pathfinding system.• com.unity.mathematicsUsed for high-performance math operations.• com.unity.recorderUsed only for editor recording utilities included in the toolkit.• com.unity.editorcoroutinesUsed for editor tools that perform asynchronous operations in the Unity Editor.




