protected override void OnAwake() { var depthcam = gameObject.GetComponent <SensorDevices.DepthCamera>(); if (depthcam is null) { ChangePluginType(Type.CAMERA); cam = gameObject.GetComponent <SensorDevices.Camera>(); } else { ChangePluginType(Type.DEPTHCAMERA); cam = depthcam; } partName = DeviceHelper.GetPartName(gameObject); }
protected override void OnAwake() { var depthcam = gameObject.GetComponent <SensorDevices.DepthCamera>(); if (depthcam is null) { ChangePluginType(ICLOiSimPlugin.Type.CAMERA); cam = gameObject.GetComponent <SensorDevices.Camera>(); attachedDevices.Add("Camera", cam); } else { ChangePluginType(ICLOiSimPlugin.Type.DEPTHCAMERA); cam = depthcam; attachedDevices.Add("DepthCamera", cam); } partsName = DeviceHelper.GetPartName(gameObject); }
protected override void OnAwake() { type = Type.CAMERA; cam = gameObject.GetComponent <SensorDevices.Camera>(); partName = DeviceHelper.GetPartName(gameObject); }
protected override void OnAwake() { memoryStreamForCameraInfo = new MemoryStream(); cam = gameObject.GetComponent <SensorDevices.Camera>(); partName = DeviceHelper.GetPartName(gameObject); }