public GameObject RunPipeline() { if (!RoadNetworkSourceExists()) { return(null); } var pipeline = new ContentPipeline(); GameObject generatedObjects; try { generatedObjects = roadNetworkSource == RoadNetworkSource.OpenDrive ? RunOpenDrivePipeline(pipeline) : RunSplineBasedRoadNetworkPipeline(pipeline); } catch { pipeline.Dispose(); throw; } pipeline.Dispose(); return(generatedObjects); }
public void TearDown() { m_Pipeline.Dispose(); foreach (var obj in m_TearDownObjects) { Object.DestroyImmediate(obj); } m_TearDownObjects.Clear(); }