/// <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 (cascade != null) cascade.Dispose (); #if UNITY_WEBGL && !UNITY_EDITOR 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(); } if (frontalFaceParam != null) { frontalFaceParam.Dispose(); } }
/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { if (webCamTextureToMatHelper != null) { webCamTextureToMatHelper.Dispose(); } if (faceLandmarkDetector != null) { faceLandmarkDetector.Dispose(); } #if UNITY_WEBGL && !UNITY_EDITOR foreach (var coroutine in coroutines) { StopCoroutine(coroutine); ((IDisposable)coroutine).Dispose(); } #endif }
void OnDestroy() { _webCamTextureToMatHelper.Dispose(); }
void OnDestroy() { _texToMatHelper.Dispose(); }
void OnDisable() { webCamTextureToMatHelper.Dispose(); }