public static bool ClearLaneConnections(uint laneId) { bool result = false; Lane lane = GetLane(laneId); if (lane != null) { result = true; foreach (uint connectionId in GetLaneConnections(laneId)) { result &= lane.RemoveConnection(connectionId); } ToolsModifierControl.GetTool <RoadCustomizerTool>().SetNodeMarkers(lane.m_nodeId, true); } return(result); }
public static bool RemoveLaneConnection(uint laneId, uint connectionId) { Lane lane = GetLane(laneId); return(lane.RemoveConnection(connectionId)); }