sealed class Tinman.AddOns.Components.ProfilerGui

Full source code is included in the Tinman 3D SDK download.

A GUI component that displays the properties of a IProfiler object.

The following default Layout settings are defined for MeshDynamicGui objects:

The ProfilerGui component has an additional 2D-overlay that may be rendered separately (see RenderOverlay).

Public / Constants


public constant LabelShowOverlay → ("Show value overlay?":string)

Label for toggling display of the profiler value overlay.

Public / Constructors


public constructor ProfilerGui → ()

Creates a new instance of ProfilerGui.

Public / Methods


public method RenderOverlay → (2)

in : Graphics

The graphics object to use.

bounds in : Box2I

The bounds to use.

Renders the 2D-overlay for the profiler GUI.

The 2D-overlay displays a horizontal bar for each profiler value that has been checked in the GUI list.

Public / Attributes


public attribute Profiler → (get,set)

value : IProfiler

The current profiler object or null if none.

The current IProfiler object.