
LaneGraph is a lightweight lane-based navigation system for pathfinding in Unity.The package is compatible with all unity versions.Ensure your project use Unity.Mathematics if it doesn't already.LaneGraph allows you to create complex road networks with different lane types, intersections, and transitions. The system provides both editor tools for designing your lane network and runtime APIs for pathfinding and lane queries.LaneGraph provides a complete solution for building lane-based navigation systems in Unity, perfect for racing games, traffic simulations, autonomous vehicle AI, and any project requiring realistic road networks with intelligent pathfinding.Visual Editor ToolsDesign your road networks using drag-and-drop lane components including Paths, Intersections, and Transitions. Configure Lane Profiles with custom properties, visualize connections in real-time, and set up traffic signal controllers (LaneStateController) with customizable timing.Path Component: Create straight or curved lane segments with configurable shapes (Linear, AutoBezier, Manual Bezier)Intersection Component: Connect multiple paths with customizable lane-to-lane connections for turns and traffic flowTransition Component: Handle lane merges and splits for highway on-ramps, lane reductions, and complex traffic patternsLane State Controller: Manage traffic signals with customizable timing and signal groups for realistic traffic controlRuntime PerformanceBuilt for efficiency with optimized spatial queries, lightweight data structures, and scene-based lane graph building. The system handles large-scale environments while maintaining fast query times for lane detection and pathfinding. All component data is automatically converted and stored in optimized scriptable objects for fast runtime access.What's IncludedEditor-Only Components: Visual lane editing tools, profile managers, lane state controllers, and build utilities for designing your road networksRuntime Scriptable Objects: Optimized lane graph data structures for fast queries, pathfinding, and lane state managementComplete Documentation: Comprehensive user guide with examples, API reference, and best practicesDemo Scenes: Ready-to-use examples showcasing different lane configurations and use casesPerfect for developers creating racing games, traffic simulations, city builders, or any project requiring intelligent vehicle navigation on predefined road networks. The system scales from simple paths to complex multi-lane highways with intersections and traffic control.Key features:Lane-based pathfindingSupport for different lane types and directionsIntersections with customizable connectionsLane transitions (merges and splits)Traffic signal controlOptimized spatial queries using A* pathfinding algorithmUtilizes Unity.Mathematics for lightweight and efficient data types (float3, etc.)Supported OS:The LaneGraph system is designed to be fully compatible with all platforms supported by Unity. The runtime components have been optimized to work efficiently on mobile devices, consoles, and desktop platforms without requiring platform-specific adjustments. The data structures are compact and memory-efficient, ensuring consistent performance across all deployment targets.