/// <summary> /// In Unity 4, WebCamTexture is stopped when a new level is loaded. /// We manually restart the webcam again if it has been enabled before. /// </summary> void OnLevelWasLoaded() { if (QCARRuntimeUtilities.IsPlayMode() && mWebCamImpl != null) { mWebCamImpl.ResetPlaying(); } }