Interface ITextureVisual
Inherited Members
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 |
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. |