Class RenderTextureViewer
The role of this class is to instantiate a raw image viewer to display on screen the RenderTexture received on its input port.
Inherited Members
Namespace: Mechatronics.SensorSDK
Syntax
[NodeCategory("Viewer", "RenderTexture viewer", NodeTick.Asynchronous, LifeCycle.Update, 0F, NodeMode.Standard, false)]
public class RenderTextureViewer : NodeRuntime
Fields
enable
Declaration
[Tooltip("Active the node.")]
[Field("Enable", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<bool> enable
Field Value
Type | Description |
---|---|
PortType<Boolean> |
imageName
Declaration
[Tooltip("Name of the gameObject to generate into canvas/CameraViewFrame that will contain the texture/raw image.")]
[Field("ImageName", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<string> imageName
Field Value
Type | Description |
---|---|
PortType<String> |
renderTexture
Declaration
[Tooltip("Render texture to visualize.")]
[Field("RenderTexture", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<RenderTexture> renderTexture
Field Value
Type | Description |
---|---|
PortType<RenderTexture> |
Methods
Enable(Scheduler.ClockState)
Create a canvas, if it doesn't exist, and setup the viewer into it.
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
Update()
Update the raw image on the canvas with the render texture on the input port.
Declaration
public override void Update()