void EnsureEgoInitialized() { if (m_EgoHandle == default) { m_EgoHandle = DatasetCapture.RegisterEgo(Description); } }
// Start is called before the first frame update void Awake() { m_EgoMarker = this.GetComponentInParent <Ego>(); var ego = m_EgoMarker == null?DatasetCapture.RegisterEgo("") : m_EgoMarker.EgoHandle; SensorHandle = DatasetCapture.RegisterSensor(ego, "camera", description, period, startTime); SetupInstanceSegmentation(); RenderPipelineManager.beginCameraRendering += OnBeginCameraRendering; RenderPipelineManager.endCameraRendering += CheckForRendererFeature; DatasetCapture.SimulationEnding += OnSimulationEnding; }
// Start is called before the first frame update void Awake() { m_EgoMarker = this.GetComponentInParent <Ego>(); var ego = m_EgoMarker == null?DatasetCapture.RegisterEgo("") : m_EgoMarker.EgoHandle; SensorHandle = DatasetCapture.RegisterSensor(ego, "camera", description, period, startTime); AsyncRequest.maxJobSystemParallelism = 0; // Jobs are not chained to one another in any way, maximizing parallelism AsyncRequest.maxAsyncRequestFrameAge = 4; // Ensure that readbacks happen before Allocator.TempJob allocations get stale SetupInstanceSegmentation(); var cam = GetComponent <Camera>(); #if UNITY_EDITOR || DEVELOPMENT_BUILD SetupVisualizationCamera(cam); #endif DatasetCapture.SimulationEnding += OnSimulationEnding; }