docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TimeDebug

    Provides helper utilities for debugging simulation time, including editor-pause detection and frame-tagged logging.

    Inheritance
    object
    TimeDebug
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 [frameCount].

    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.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)