Esempio n. 1
0
        public static void RoadNetworkToLineRenderer()
        {
            var roadNetworkDescription = GetSelectedRoadNetwork();

            if (roadNetworkDescription == null)
            {
                return;
            }

            var go = RoadNetworkMesher.GenerateLineRenderer(roadNetworkDescription);

            AddRoadNetworkReference(go, roadNetworkDescription);
        }
Esempio n. 2
0
 public void GenerateMeshTypeRoads(RoadNetworkDescription road, MeshGenerationType roadMeshGenerationType)
 {
     if (roadMeshGenerationType == MeshGenerationType.MeshRoad)
     {
         RoadNetworkMesher.GenerateMesh(road);
     }
     else if (roadMeshGenerationType == MeshGenerationType.MeshLanes)
     {
         RoadNetworkMesher.GenerateLineRenderer(road);
     }
     else if (roadMeshGenerationType == MeshGenerationType.MeshLineRenderer)
     {
         RoadNetworkMesher.GenerateLineRenderer(road);
     }
 }