Class BaseRenderTextureInput
Base class for all Recorder inputs that capture images.
Inherited Members
Namespace: UnityEditor.Recorder
Syntax
public abstract class BaseRenderTextureInput : RecorderInput, IDisposable
Properties
OutputHeight
Stores the output image height.
Declaration
protected int OutputHeight { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
OutputRenderTexture
Enables asynchronous readback of GPU resources if the platform supports it. Set this property to a valid instance and ensure that ReadbackTexture is not set.
Declaration
protected RenderTexture OutputRenderTexture { get; set; }
Property Value
Type | Description |
---|---|
RenderTexture |
OutputWidth
Stores the output image width.
Declaration
protected int OutputWidth { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ReadbackTexture
Indicates the synchronous GPU readback destination.
Declaration
protected Texture2D ReadbackTexture { get; set; }
Property Value
Type | Description |
---|---|
Texture2D |
Methods
Dispose(Boolean)
Releases all resources allocated by this instance.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | If true, releases buffers allocated by this class as well. |
Overrides
ReleaseBuffer()
Releases all resources allocated by this class instance.
Declaration
protected void ReleaseBuffer()