/// <summary> /// Raises the disable event. /// </summary> void OnDisable() { webCamTextureToMatHelper.Dispose(); if (cascade != null) { cascade.Dispose(); } }
/// <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 }