public void Release() { OnStart = OnFrame = null; NatCamBridge.Release(); if (preview) { Texture2D.Destroy(preview); } preview = null; }
public void Release() { OnStart = OnFrame = null; #if NATCAM_PRO || NATCAM_PROFESSIONAL NatCamBridge.ReleaseBuffer(); #endif NatCamBridge.Release(); if (preview != null) { MonoBehaviour.Destroy(preview); } preview = null; }
public void Release() { OnStart = OnFrame = null; #if NATCAM_PRO // ... #endif NatCamBridge.Release(); if (preview != null) { MonoBehaviour.Destroy(preview); } preview = null; }