/// <summary> /// Stops capturing photos /// </summary> public void StopCapture() { Debug.Log("################### StopCapture!"); capturing = false; currentCaptureTimeout = 0; #if WINDOWS_UWP holoLensCapture.StopCapture(); OnMarkersDetected -= HologramOnARuco; #else Debug.LogWarning("Capturing is not supported on this platform"); #endif }
/// <summary> /// Starts capturing photos /// </summary> public void StartCapture() { currentCaptureTimeout = CaptureTimeout; #if WINDOWS_UWP if (!capturing) { holoLensCapture.StartCapture(); OnMarkersDetected += HologramOnARuco; } #else Debug.LogWarning("Capturing is not supported on this platform"); #endif capturing = true; }