void InitializeCamera() { string cameraName = m_WebcamManager.GetFrontCameraName(); if (!cameraName.Equals("default")) { baseRotation = transform.rotation; m_WebcamTexture = new WebCamTexture(cameraName); m_DetectionScreenImage.texture = m_WebcamTexture; m_DetectionScreenImage.material.mainTexture = m_WebcamTexture; m_WebcamTexture.Play(); } else { Debug.LogError("No front facing cameras found"); } }