docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MarkerDefaultVisualizer.MarkersVisual

    The IVisual implementation that subscribes to both Marker and MarkerArray topics, maintaining per-namespace and per-ID Drawing3d instances and routing add/delete/deleteAll actions.

    Inheritance
    object
    MarkerDefaultVisualizer.MarkersVisual
    Implements
    IVisual
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.SimulationPro.Foundation.Visualizations
    Assembly: Unity.SimulationPro.Foundation.Visualizations.dll
    Syntax
    public class MarkerDefaultVisualizer.MarkersVisual : IVisual

    Constructors

    MarkersVisual(IConnector, string)

    Creates a MarkerDefaultVisualizer.MarkersVisual that subscribes to the given topic as either a MarkerArray or Marker topic based on the registered message type.

    Declaration
    public MarkersVisual(IConnector connector, string topic)
    Parameters
    Type Name Description
    IConnector connector

    The connector used to subscribe to the topic.

    string topic

    ROS topic name.

    Properties

    IsDrawingEnabled

    The is drawing enabled.

    Declaration
    public bool IsDrawingEnabled { get; }
    Property Value
    Type Description
    bool

    Label

    The label.

    Declaration
    public string Label { get; }
    Property Value
    Type Description
    string

    Methods

    Destroy()

    Destroy.

    Declaration
    public void Destroy()

    Draw<C>(MarkerMsg, Drawing3d)

    Draws the given marker into the provided Drawing3d, selecting the geometry method based on marker.type.

    Declaration
    public static void Draw<C>(MarkerMsg marker, Drawing3d drawing) where C : ICoordinateSpace, new()
    Parameters
    Type Name Description
    MarkerMsg marker

    The marker message to visualize.

    Drawing3d drawing

    The Drawing3d to draw into.

    Type Parameters
    Name Description
    C

    The coordinate space of the marker data.

    OnGUI()

    On GUI.

    Declaration
    public void OnGUI()

    Redraw()

    Redraw.

    Declaration
    public void Redraw()

    SetDrawingEnabled(bool)

    Enables or disables 3D drawing for this visual.

    Declaration
    public void SetDrawingEnabled(bool enabled)
    Parameters
    Type Name Description
    bool enabled

    Whether drawing should be enabled.

    Implements

    IVisual
    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)