public void StopPreview() { DispatchUtility.onFrame -= Update; PreviewTexture.Stop(); WebCamTexture.Destroy(PreviewTexture); PreviewTexture = null; previewBuffer = null; camera = null; startCallback = frameCallback = null; }
public void Release() { if (!PreviewTexture) { return; } OnStart = OnFrame = null; PreviewTexture.Stop(); WebCamTexture.Destroy(PreviewTexture); PreviewTexture = null; previewBuffer = null; dispatch.Dispose(); dispatch = null; camera = -1; }
public void Pause() { PreviewTexture.Stop(); }