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