Class RenderTextureToFile
The role of this class is to take an incoming render texture and save it into an image file.
Inheritance
RenderTextureToFile
Syntax
public class RenderTextureToFile : NodeRuntime
Fields
destination
Declaration
[Tooltip("Output file destination relative to the application root folder. Somewhere in the Users/Username/AppData/LocalLow/CompanyName/ProjectName/")]
[Field("Destination", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<string> destination
Field Value
filename
Declaration
[Tooltip("Output file name.")]
[Field("Filename", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<string> filename
Field Value
format
Declaration
[Tooltip("Output file format.")]
[Field("Format", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
public PortTypeEnum format
Field Value
isSingleFile
Declaration
[Tooltip("Tell if we want to override the file with the most recent change or create multiple file with date timestamp.")]
[Field("IsSingleFile", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<bool> isSingleFile
Field Value
renderTexture
Declaration
[Tooltip("RenderTexture to readback.")]
[Field("RenderTexture", PortDirection.Left, FieldExtra.Read | FieldExtra.ChangeEvent)]
[SerializeField]
protected PortType<RenderTexture> renderTexture
Field Value
Methods
Disable()
Disable change event on render texture port.
Declaration
public override void Disable()
Overrides
Enable(Scheduler.ClockState)
Enable change event on render texture port.
Declaration
public override void Enable(Scheduler.ClockState clockState)
Parameters
Type |
Name |
Description |
Scheduler.ClockState |
clockState |
The parameters of the waveform associated to this node
|
Overrides