Interface IVisual
Represents a visualization that can display 3D drawings and 2D GUI content for a subscribed topic.
Namespace: Unity.SimulationPro.Foundation.Visualizations
Assembly: Unity.SimulationPro.Foundation.Visualizations.dll
Syntax
public interface IVisual
Properties
IsDrawingEnabled
Gets a value indicating whether 3D drawing is currently enabled for this visual.
Declaration
bool IsDrawingEnabled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
OnGUI()
Renders the 2D GUI panel for this visual using the most recently received message.
Declaration
void OnGUI()
Redraw()
Redraws the 3D visualization using the most recently received message.
Declaration
void Redraw()
SetDrawingEnabled(bool)
Enables or disables 3D drawing for this visual. Clearing existing geometry when disabled.
Declaration
void SetDrawingEnabled(bool enabled)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | enabled | Whether 3D drawing should be active. |