docs.unity3d.com
    Show / Hide Table of Contents

    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.

    Inheritance
    Object
    NodeRuntime
    RenderTextureViewer
    Inherited Members
    NodeRuntime._parent
    NodeRuntime._portList
    NodeRuntime._queryPath
    NodeRuntime._tickCPUTimeNs
    NodeRuntime.Initialize(SystemGraphComponent)
    NodeRuntime.InternalInitialize()
    NodeRuntime.Start()
    NodeRuntime.Disable()
    NodeRuntime.OnTick(Double, Double, Scheduler.ClockState, Scheduler.Signal)
    NodeRuntime.FixedUpdate()
    NodeRuntime.OnPortAdded(String, Type, String, PortDirection, FieldExtra, IPortType)
    NodeRuntime.OnPortRemoved(String)
    NodeRuntime.InitializeDynamicPorts(SystemGraphComponent)
    NodeRuntime.QueryPath
    NodeRuntime.TickCPUTimeNs
    NodeRuntime.PortDataList
    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
    NodeRuntime.Enable(Scheduler.ClockState)

    Update()

    Update the raw image on the canvas with the render texture on the input port.

    Declaration
    public override void Update()
    Overrides
    NodeRuntime.Update()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023