Class Debug | Project Tiny | 0.21.0-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Class Debug

    Inheritance
    Object
    Debug
    Namespace: Unity.Tiny
    Syntax
    public static class Debug

    Methods

    Log(Object)

    Writes an object's ToString to stdout. This function is affected by log history/spam filtering, and will be suppressed if it Logs too frequently

    Declaration
    [Conditional("DEBUG")]
    public static void Log(object logObject)
    Parameters
    Type Name Description
    Object logObject

    LogAlways(Object)

    Writes an object's ToString to stdout. This function will always log (it is unaffected by log history/spam filtering)

    Declaration
    [Conditional("DEBUG")]
    public static void LogAlways(object logObject)
    Parameters
    Type Name Description
    Object logObject

    LogError(Object)

    Writes an object's ToString to stdout as a error. This function is affected by log history/spam filtering, and will be suppressed if it Logs too frequently

    Declaration
    [Conditional("DEBUG")]
    public static void LogError(object message)
    Parameters
    Type Name Description
    Object message

    LogException(Exception)

    Writes a formatted string to stdout. This function is affected by log history/spam filtering, and will be suppressed if it Logs too frequently

    Declaration
    [Conditional("DEBUG")]
    public static void LogException(Exception exception)
    Parameters
    Type Name Description
    Exception exception

    LogExceptionAlways(Exception)

    Writes a formatted string to stdout. This function is affected by log history/spam filtering, and will be suppressed if it Logs too frequently

    Declaration
    [Conditional("DEBUG")]
    public static void LogExceptionAlways(Exception exception)
    Parameters
    Type Name Description
    Exception exception

    LogFormat(String, Object[])

    Writes a formatted string to stdout. This function is affected by log history/spam filtering, and will be suppressed if it Logs too frequently

    Declaration
    [Conditional("DEBUG")]
    public static void LogFormat(string format, params object[] args)
    Parameters
    Type Name Description
    String format
    Object[] args

    LogFormatAlways(String, Object[])

    Writes a formatted string to stdout. This function will always log (it is unaffected by log history/spam filtering)

    Declaration
    [Conditional("DEBUG")]
    public static void LogFormatAlways(string format, params object[] args)
    Parameters
    Type Name Description
    String format
    Object[] args

    LogFormatRelease(String, Object[])

    Declaration
    public static void LogFormatRelease(string format, params object[] args)
    Parameters
    Type Name Description
    String format
    Object[] args

    LogFormatReleaseAlways(String, Object[])

    Declaration
    public static void LogFormatReleaseAlways(string format, params object[] args)
    Parameters
    Type Name Description
    String format
    Object[] args

    LogRelease(Object)

    Declaration
    public static void LogRelease(object logObject)
    Parameters
    Type Name Description
    Object logObject

    LogReleaseAlways(Object)

    Declaration
    public static void LogReleaseAlways(object logObject)
    Parameters
    Type Name Description
    Object logObject

    LogReleaseException(Exception)

    Declaration
    public static void LogReleaseException(Exception exception)
    Parameters
    Type Name Description
    Exception exception

    LogReleaseExceptionAlways(Exception)

    Declaration
    public static void LogReleaseExceptionAlways(Exception exception)
    Parameters
    Type Name Description
    Exception exception

    LogWarning(Object)

    Writes an object's ToString to stdout as a warning. This function is affected by log history/spam filtering, and will be suppressed if it Logs too frequently

    Declaration
    [Conditional("DEBUG")]
    public static void LogWarning(object message)
    Parameters
    Type Name Description
    Object message
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023