public virtual void StopRecording () { if (audioSource != null) audioSource.Dispose(); audioSource = null; NatCorderBridge.StopRecording(); Texture2D.Destroy(framebuffer); framebuffer = null; }
public void StopRecording() { if (audioSource != null) { audioSource.Dispose(); } NatCorderBridge.StopRecording(); }
public override void StopRecording() { if (audioSource != null) { audioSource.Dispose(); } #if UNITY_WEBGL && !UNITY_EDITOR var pathPtr = NatCorderBridge.StopRecording(); // Signature is different #else var pathPtr = IntPtr.Zero; #endif Texture2D.Destroy(framebuffer); audioSource = null; framebuffer = null; var callback = new GameObject("NatCorderWebGL Delegate").AddComponent <VideoDelegate>(); callback.StartCoroutine(OnVideo(pathPtr, callback)); }
public virtual void StopRecording () { NatCorderBridge.StopRecording(); Texture2D.Destroy(framebuffer); framebuffer = null; }
public void StopRecording() { NatCorderBridge.StopRecording(); }