Class BaseRenderTextureInput
Base class for all Recorder inputs that capture images.
Implements
Inherited Members
Namespace: UnityEditor.Recorder
Assembly: Unity.Recorder.Editor.dll
Syntax
public abstract class BaseRenderTextureInput : RecorderInput, IDisposable
Properties
OutputHeight
Stores the output image height.
Declaration
public int OutputHeight { get; protected set; }
Property Value
Type | Description |
---|---|
int |
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
public int OutputWidth { get; protected set; }
Property Value
Type | Description |
---|---|
int |
ReadbackTexture
Indicates the synchronous GPU readback destination.
Declaration
protected Texture2D ReadbackTexture { get; set; }
Property Value
Type | Description |
---|---|
Texture2D |
Methods
Dispose(bool)
Releases all resources allocated by this instance.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | 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()