API reference
API reference
Select your platform
No SDKs available
No versions available

DebugBar Class

This is a MonoBehaviour for the Debug Bar UI panel (the bar on the bottom) of Immersive Debugger.
Containing UI elements of miniButtons, large buttons and the label for startup time. Allow registering buttons and callbacks. For more info about Immersive Debugger, check out the official doc

Protected Methods

Setup ( owner )
Signature
override void Setup(Controller owner)
Parameters
owner: Controller
Returns
override void

Methods

RegisterControl ( buttonName , icon , callback )
Registration of the mini buttons for performing certain controls.
Signature
Toggle RegisterControl(string buttonName, Texture2D icon, Action callback)
Parameters
buttonName: string  String for the name of the button
icon: Texture2D  Texture2D of the icon that's used for displaying the button
callback: Action  Action that's invoked upon clicking the button
Returns
Toggle  Toggle component of the mini button itself
Throws
ArgumentNullException  Throws when any of the parameters is null
RegisterPanel ( panel )
Registration of the large buttons for toggling different panels.
Will display the Icon from the DebugPanel and toggle its visibility upon clicking the icon on the debug bar.
Signature
void RegisterPanel(DebugPanel panel)
Parameters
panel: DebugPanel  The DebugPanel that is registered on the debug bar
Returns
void