/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { webCamTextureToMatHelper.Dispose(); if (er_filter1 != null) { er_filter1.Dispose(); } if (er_filter2 != null) { er_filter2.Dispose(); } if (decoder != null) { decoder.Dispose(); } #if UNITY_WEBGL && !UNITY_EDITOR foreach (var coroutine in coroutines) { StopCoroutine(coroutine); ((IDisposable)coroutine).Dispose(); } #endif Utils.setDebugMode(false); }
/// <summary> /// Raises the disable event. /// </summary> void OnDisable() { webCamTextureToMatHelper.Dispose(); if (cascade != null) { cascade.Dispose(); } }
/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { webCamTextureToMatHelper.Dispose(); if (detector != null) { detector.Dispose(); } }
/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { webCamTextureToMatHelper.Dispose(); if (net != null) { net.Dispose(); } Utils.setDebugMode(false); }
/// <summary> /// Raises the disable event. /// </summary> void OnDisable() { webCamTextureToMatHelper.Dispose(); if (blob != null) { blob.Dispose(); } if (net != null) { net.Dispose(); } }
/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { if (isImagesInputMode) { DisposeCalibraton(); } else { webCamTextureToMatHelper.Dispose(); } Screen.orientation = ScreenOrientation.AutoRotation; }
/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { webCamTextureToMatHelper.Dispose(); if (cascade != null) { cascade.Dispose(); } if (facemark != null) { facemark.Dispose(); } }
/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { if (faceLandmarkDetector != null) { faceLandmarkDetector.Dispose(); } webCamTextureToMatHelper.Dispose(); if (detector != null) { detector.Dispose(); } }
/// <summary> /// Raises the disable event. /// </summary> void OnDisable() { webCamTextureToMatHelper.Dispose(); if (blob != null) { blob.Dispose(); } if (net != null) { net.Dispose(); } Utils.setDebugMode(false); }
/// <summary> /// Raises the disable event. /// </summary> void OnDisable() { webCamTextureToMatHelper.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() { webCamTextureToMatHelper.Dispose(); if (cascade != null) { cascade.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() { webCamTextureToMatHelper.Dispose(); if (net != null) net.Dispose(); Utils.setDebugMode(false); #if UNITY_WEBGL if (getFilePath_Coroutine != null) { StopCoroutine(getFilePath_Coroutine); ((IDisposable)getFilePath_Coroutine).Dispose(); } #endif }
/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { webCamTextureToMatHelper.Dispose(); if (resized != null) { resized.Dispose(); } if (inputBlob != null) { inputBlob.Dispose(); } if (net != null) { net.Dispose(); } Utils.setDebugMode(false); }
/// <summary> /// Raises the disable event. /// </summary> void OnDisable() { webCamTextureToMatHelper.Dispose(); if (blob != null) { blob.Dispose(); } if (net != null) { net.Dispose(); } Utils.setDebugMode(false); #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() { webCamTextureToMatHelper.Dispose(); imageOptimizationHelper.Dispose(); }
/// <summary> /// Raises the disable event. /// </summary> void OnDisable() { webCamTextureToMatHelper.Dispose(); // Utils.setDebugMode (false); }
/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { webCamTextureToMatHelper.Dispose(); }
/// <summary> /// Raises the disable event. /// </summary> void OnDisable() { webCamTextureToMatHelper.Dispose(); }