Interface IHudTab
Represents a tab that can be registered in the ConnectorHud panel.
Namespace: Unity.SimulationPro.Foundation
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
public interface IHudTab
Remarks
Register tabs using RegisterTab(IConnector, IHudTab, int). Use HudTabOrdering constants for the ordering index to control tab placement relative to built-in tabs.
Properties
Label
Gets the display label shown on the tab button.
Declaration
string Label { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
OnDeselected()
Called when this tab is deselected in favor of another tab.
Declaration
void OnDeselected()
OnGUI(ConnectorHud)
Called every OnGUI frame while this tab is selected to draw its content.
Declaration
void OnGUI(ConnectorHud hud)
Parameters
| Type | Name | Description |
|---|---|---|
| ConnectorHud | hud | The owning ConnectorHud instance. |
OnSelected()
Called when this tab becomes the selected tab.
Declaration
void OnSelected()