Class BaseTextureRecorder<T>
Abstract base class for all Recorders that output images.
Inherited Members
Namespace: UnityEditor.Recorder
Assembly: solution.dll
Syntax
public abstract class BaseTextureRecorder<T> : GenericRecorder<T> where T : RecorderSettings
Type Parameters
| Name | Description |
|---|---|
| T | The class implementing the Recorder Settings. |
Fields
| Name | Description |
|---|---|
| UseAsyncGPUReadback | Whether or not to use asynchronous GPU commands in order to get the texture for the recorder. |
Properties
| Name | Description |
|---|---|
| ReadbackTextureFormat | Stores the format of the texture used for the readback. |
Methods
| Name | Description |
|---|---|
| BeginRecording(RecordingSession) | Starts a new recording session. Callback is invoked once when the recording session starts. |
| DisposeEncoder() | Releases the encoder resources. |
| EndRecording(RecordingSession) | Ends the current recording session. Callback is invoked when the recording session ends. |
| PrepareNewFrame(RecordingSession) | Prepares a frame before recording it. Callback is invoked for every frame during the recording session, before RecordFrame. |
| RecordFrame(RecordingSession) | Records a single frame. Callback is invoked for every frame during the recording session. |
| WriteFrame(AsyncGPUReadbackRequest) | Writes the frame from an asynchronous GPU read request. |
| WriteFrame(Texture2D) | Writes the frame from a Texture2D. |