Class TimeDebug
Provides helper utilities for debugging simulation time, including editor-pause detection and frame-tagged logging.
Inherited Members
Namespace: Unity.SimulationPro.Foundation
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
public static class TimeDebug
Properties
IsPausedInEditor
Gets a value indicating whether the application is currently paused in the Unity Editor. Always returns false in player builds.
Declaration
public static bool IsPausedInEditor { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
AddFrameCount(string)
Prepends the current frame count to the given message string.
Declaration
public static string AddFrameCount(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message to annotate. |
Returns
| Type | Description |
|---|---|
| string | The message prefixed with |
LogWithFrame(string)
Logs a message annotated with the current frame count.
Declaration
public static void LogWithFrame(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message to log. |
StepInEditorLog(string)
Logs a message only when running in the Editor while paused and stepping frame-by-frame. Does nothing in player builds or when the editor is not paused.
Declaration
public static void StepInEditorLog(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message to log. |