/// <summary>
 /// Stop recorder input and release resources.
 /// </summary>
 public void Dispose()
 {
     CameraInputAttachment.Destroy(attachment);
     RenderTexture.ReleaseTemporary(frameBuffer);
     Texture2D.Destroy(readbackBuffer);
     pixelBuffer = null;
 }
 /// <summary>
 /// Stop recorder input and release resources.
 /// </summary>
 public void Dispose()
 {
     CameraInputAttachment.Destroy(attachment);
     Texture2D.Destroy(readbackBuffer);
     pixelBuffer = null;
 }
Exemple #3
0
 public void Dispose()
 {
     CameraInputAttachment.Destroy(frameHelper);
     frameInput.Dispose();
     RenderTexture.ReleaseTemporary(framebuffer);
 }