docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ITextureVisual

    Extends IVisual with the ability to expose a Texture2D representation of the visualized message.

    Inherited Members
    IVisual.IsDrawingEnabled
    IVisual.SetDrawingEnabled(bool)
    IVisual.Redraw()
    IVisual.OnGUI()
    Namespace: Unity.SimulationPro.Foundation.Visualizations
    Assembly: Unity.SimulationPro.Foundation.Visualizations.dll
    Syntax
    public interface ITextureVisual : IVisual

    Methods

    GetTexture()

    Returns the current Texture2D generated from the most recently received message, or null if no message has been received.

    Declaration
    Texture2D GetTexture()
    Returns
    Type Description
    Texture2D

    The current visualization texture, or null.

    ListenForTextureChange(Action<Texture2D>)

    Registers a callback that is invoked each time a new texture is generated from an incoming message.

    Declaration
    void ListenForTextureChange(Action<Texture2D> callback)
    Parameters
    Type Name Description
    Action<Texture2D> callback

    The action to invoke with the new Texture2D.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)