/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { if (webCamTextureToMatHelper != null) { webCamTextureToMatHelper.Dispose(); } if (imageOptimizationHelper != null) { imageOptimizationHelper.Dispose(); } if (faceLandmarkDetector != null) { faceLandmarkDetector.Dispose(); } if (cascade != null) { cascade.Dispose(); } #if UNITY_WEBGL && !UNITY_EDITOR foreach (var coroutine in coroutines) { StopCoroutine(coroutine); ((IDisposable)coroutine).Dispose(); } #endif }
/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { if (imageOptimizationHelper != null) { imageOptimizationHelper.Dispose(); } if (webCamTextureToMatHelper != null) { webCamTextureToMatHelper.Dispose(); } if (faceLandmarkDetector != null) { faceLandmarkDetector.Dispose(); } #if UNITY_WEBGL && !UNITY_EDITOR if (getFilePath_Coroutine != null) { StopCoroutine(getFilePath_Coroutine); ((IDisposable)getFilePath_Coroutine).Dispose(); } #endif }
/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { if (webCamTextureToMatHelper != null) { webCamTextureToMatHelper.Dispose(); } if (faceLandmarkDetector != null) { faceLandmarkDetector.Dispose(); } if (lowPassFilter != null) { lowPassFilter.Dispose(); } if (kalmanFilter != null) { kalmanFilter.Dispose(); } if (opticalFlowFilter != null) { opticalFlowFilter.Dispose(); } #if UNITY_WEBGL && !UNITY_EDITOR foreach (var coroutine in coroutines) { StopCoroutine(coroutine); ((IDisposable)coroutine).Dispose(); } #endif }
/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { if (webCamTextureToMatHelper != null) { webCamTextureToMatHelper.Dispose(); } if (faceLandmarkDetector != null) { faceLandmarkDetector.Dispose(); } if (lowPassFilter != null) { lowPassFilter.Dispose(); } if (kalmanFilter != null) { kalmanFilter.Dispose(); } if (opticalFlowFilter != null) { opticalFlowFilter.Dispose(); } #if UNITY_WEBGL if (getFilePath_Coroutine != null) { StopCoroutine(getFilePath_Coroutine); ((IDisposable)getFilePath_Coroutine).Dispose(); } #endif }
/// <summary> /// Raises the disable event. /// </summary> void OnDisable() { if (webCamTextureToMatHelper != null) { webCamTextureToMatHelper.Dispose(); } if (faceLandmarkDetector != null) { faceLandmarkDetector.Dispose(); } }