Show / Hide Table of Contents

Class Debug

Inheritance
Object
Debug
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public class Debug

Properties

developerConsoleVisible

Declaration
public static bool developerConsoleVisible { get; set; }
Property Value
Type Description
Boolean

isDebugBuild

Declaration
public static bool isDebugBuild { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

unityLogger

Declaration
public static ILogger unityLogger { get; }
Property Value
Type Description
ILogger

Methods

| Improve this Doc View Source

Assert(Boolean)

Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void Assert(bool condition)
Parameters
Type Name Description
Boolean condition
| Improve this Doc View Source

Assert(Boolean, Object)

Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void Assert(bool condition, object message)
Parameters
Type Name Description
Boolean condition
Object message
| Improve this Doc View Source

Assert(Boolean, Object, Object)

Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void Assert(bool condition, object message, Object context)
Parameters
Type Name Description
Boolean condition
Object message
Object context
| Improve this Doc View Source

Assert(Boolean, String)

Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void Assert(bool condition, string message)
Parameters
Type Name Description
Boolean condition
String message
| Improve this Doc View Source

Assert(Boolean, String, Object)

Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void Assert(bool condition, string message, Object context)
Parameters
Type Name Description
Boolean condition
String message
Object context
| Improve this Doc View Source

Assert(Boolean, Object)

Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void Assert(bool condition, Object context)
Parameters
Type Name Description
Boolean condition
Object context
| Improve this Doc View Source

AssertFormat(Boolean, String, Object[])

Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void AssertFormat(bool condition, string format, params object[] args)
Parameters
Type Name Description
Boolean condition
String format
Object[] args
| Improve this Doc View Source

AssertFormat(Boolean, Object, String, Object[])

Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void AssertFormat(bool condition, Object context, string format, params object[] args)
Parameters
Type Name Description
Boolean condition
Object context
String format
Object[] args

Break()

Declaration
public static void Break()

ClearDeveloperConsole()

Declaration
public static void ClearDeveloperConsole()

DebugBreak()

Declaration
public static void DebugBreak()
| Improve this Doc View Source

DrawLine(Vector3, Vector3)

Declaration
[ExcludeFromDocs]
public static void DrawLine(Vector3 start, Vector3 end)
Parameters
Type Name Description
Vector3 start
Vector3 end
| Improve this Doc View Source

DrawLine(Vector3, Vector3, Color)

Declaration
[ExcludeFromDocs]
public static void DrawLine(Vector3 start, Vector3 end, Color color)
Parameters
Type Name Description
Vector3 start
Vector3 end
Color color
| Improve this Doc View Source

DrawLine(Vector3, Vector3, Color, Single)

Declaration
[ExcludeFromDocs]
public static void DrawLine(Vector3 start, Vector3 end, Color color, float duration)
Parameters
Type Name Description
Vector3 start
Vector3 end
Color color
Single duration

DrawLine(Vector3, Vector3, Color, Single, Boolean)

Declaration
public static void DrawLine(Vector3 start, Vector3 end, [DefaultValue("Color.white")] Color color, [DefaultValue("0.0f")] float duration, [DefaultValue("true")] bool depthTest)
Parameters
Type Name Description
Vector3 start
Vector3 end
Color color
Single duration
Boolean depthTest
| Improve this Doc View Source

DrawRay(Vector3, Vector3)

Declaration
[ExcludeFromDocs]
public static void DrawRay(Vector3 start, Vector3 dir)
Parameters
Type Name Description
Vector3 start
Vector3 dir
| Improve this Doc View Source

DrawRay(Vector3, Vector3, Color)

Declaration
[ExcludeFromDocs]
public static void DrawRay(Vector3 start, Vector3 dir, Color color)
Parameters
Type Name Description
Vector3 start
Vector3 dir
Color color
| Improve this Doc View Source

DrawRay(Vector3, Vector3, Color, Single)

Declaration
[ExcludeFromDocs]
public static void DrawRay(Vector3 start, Vector3 dir, Color color, float duration)
Parameters
Type Name Description
Vector3 start
Vector3 dir
Color color
Single duration
| Improve this Doc View Source

DrawRay(Vector3, Vector3, Color, Single, Boolean)

Declaration
public static void DrawRay(Vector3 start, Vector3 dir, [DefaultValue("Color.white")] Color color, [DefaultValue("0.0f")] float duration, [DefaultValue("true")] bool depthTest)
Parameters
Type Name Description
Vector3 start
Vector3 dir
Color color
Single duration
Boolean depthTest
| Improve this Doc View Source

Log(Object)

Declaration
public static void Log(object message)
Parameters
Type Name Description
Object message
| Improve this Doc View Source

Log(Object, Object)

Declaration
public static void Log(object message, Object context)
Parameters
Type Name Description
Object message
Object context
| Improve this Doc View Source

LogAssertion(Object)

Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void LogAssertion(object message)
Parameters
Type Name Description
Object message
| Improve this Doc View Source

LogAssertion(Object, Object)

Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void LogAssertion(object message, Object context)
Parameters
Type Name Description
Object message
Object context
| Improve this Doc View Source

LogAssertionFormat(String, Object[])

Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void LogAssertionFormat(string format, params object[] args)
Parameters
Type Name Description
String format
Object[] args
| Improve this Doc View Source

LogAssertionFormat(Object, String, Object[])

Declaration
[Conditional("UNITY_ASSERTIONS")]
public static void LogAssertionFormat(Object context, string format, params object[] args)
Parameters
Type Name Description
Object context
String format
Object[] args
| Improve this Doc View Source

LogError(Object)

Declaration
public static void LogError(object message)
Parameters
Type Name Description
Object message
| Improve this Doc View Source

LogError(Object, Object)

Declaration
public static void LogError(object message, Object context)
Parameters
Type Name Description
Object message
Object context
| Improve this Doc View Source

LogErrorFormat(String, Object[])

Declaration
public static void LogErrorFormat(string format, params object[] args)
Parameters
Type Name Description
String format
Object[] args
| Improve this Doc View Source

LogErrorFormat(Object, String, Object[])

Declaration
public static void LogErrorFormat(Object context, string format, params object[] args)
Parameters
Type Name Description
Object context
String format
Object[] args
| Improve this Doc View Source

LogException(Exception)

Declaration
public static void LogException(Exception exception)
Parameters
Type Name Description
Exception exception
| Improve this Doc View Source

LogException(Exception, Object)

Declaration
public static void LogException(Exception exception, Object context)
Parameters
Type Name Description
Exception exception
Object context
| Improve this Doc View Source

LogFormat(String, Object[])

Declaration
public static void LogFormat(string format, params object[] args)
Parameters
Type Name Description
String format
Object[] args
| Improve this Doc View Source

LogFormat(Object, String, Object[])

Declaration
public static void LogFormat(Object context, string format, params object[] args)
Parameters
Type Name Description
Object context
String format
Object[] args
| Improve this Doc View Source

LogWarning(Object)

Declaration
public static void LogWarning(object message)
Parameters
Type Name Description
Object message
| Improve this Doc View Source

LogWarning(Object, Object)

Declaration
public static void LogWarning(object message, Object context)
Parameters
Type Name Description
Object message
Object context
| Improve this Doc View Source

LogWarningFormat(String, Object[])

Declaration
public static void LogWarningFormat(string format, params object[] args)
Parameters
Type Name Description
String format
Object[] args
| Improve this Doc View Source

LogWarningFormat(Object, String, Object[])

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

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX