Spline-based procedural road generator with sidewalks, intersections, terrain matching, and real-time editing — all from within the Unity Editor.**VectorZ Road Generator** is a powerful Unity Editor tool for creating fully procedural, spline-driven road networks in your scenes — complete with sidewalks, intersections, terrain conforming, and persistent data storage.### Key Features- **Spline-Based Road Mesh Generation**Draw roads by placing spline knots directly in the Scene view. Meshes regenerate automatically as you move knots in real time, giving you instant visual feedback.- **Configurable Road Properties**Control road width, subdivision count, thickness, and materials through a clean Scene View overlay — no Inspector digging required.- **Sidewalk Support**Toggle sidewalks on any road segment. Independently adjust sidewalk width, height, slope, and material. Each sidewalk is built from separate top, vertical, and end-cap meshes for clean normal calculations and easy material swapping.- **Terrain Matching**Enable Terrain Match mode to automatically raycast sidewalk edges onto the terrain surface, so your roads follow hills and slopes without manual adjustment. A configurable slope offset handles gradual embankments.- **Multi-Road Intersection Generation**Select two or more spline knots from different roads and click Generate Intersection. Corner curves are individually shaped via per-edge Bezier radius controls, letting you dial in tight urban corners or sweeping highway on-ramps.- **Intersection Sidewalks**Each intersection corner can have its own raised sidewalk arc, height, and material, matching seamlessly with adjacent road sidewalks.- **Non-Destructive Editing**Select any existing road or intersection to reload its settings into the overlay. Adjust and regenerate without losing data. All parameters are stored in a `SplineRoadSO` ScriptableObject that survives play mode, domain reloads, and editor restarts.- **Mesh Colliders Included**Every generated mesh (road, sidewalk, foundation, intersection) automatically receives a `MeshCollider`, so your roads are physics-ready out of the box.- **Clean Scene Hierarchy**Roads and intersections are organised as child GameObjects under the root spline object, with clearly named sub-objects for each mesh section.---### What's Included- Road Generator EditorWindow (`Tools > VectorZ Road Generator`)- Road SceneView Overlay with live parameter editing- Intersection SceneView Overlay with per-edge controls- Full C# source code- Sample materials (road, intersection, sidewalk)**Unity Version:** 2022.3+**Render Pipeline:** Compatible with Built-in RP (URP/HDRP compatible with appropriate materials)**Dependencies:** `com.unity.splines` (installed via Package Manager)**Platform:** Editor tool — works on all build targetsFor Sample scene texture creation



