366 lines
12 KiB
C#
366 lines
12 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Diagnostics;
|
|
using System.Runtime.CompilerServices;
|
|
using UnityEngine.Internal;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x02000039 RID: 57
|
|
public sealed class Debug
|
|
{
|
|
// Token: 0x170000DB RID: 219
|
|
// (get) Token: 0x06000404 RID: 1028 RVA: 0x00006FBC File Offset: 0x000051BC
|
|
public static ILogger unityLogger
|
|
{
|
|
get
|
|
{
|
|
return Debug.s_Logger;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000405 RID: 1029 RVA: 0x00006FD8 File Offset: 0x000051D8
|
|
public static void DrawLine(Vector3 start, Vector3 end, [UnityEngine.Internal.DefaultValue("Color.white")] Color color, [UnityEngine.Internal.DefaultValue("0.0f")] float duration, [UnityEngine.Internal.DefaultValue("true")] bool depthTest)
|
|
{
|
|
Debug.INTERNAL_CALL_DrawLine(ref start, ref end, ref color, duration, depthTest);
|
|
}
|
|
|
|
// Token: 0x06000406 RID: 1030 RVA: 0x00006FEC File Offset: 0x000051EC
|
|
[ExcludeFromDocs]
|
|
public static void DrawLine(Vector3 start, Vector3 end, Color color, float duration)
|
|
{
|
|
bool flag = true;
|
|
Debug.INTERNAL_CALL_DrawLine(ref start, ref end, ref color, duration, flag);
|
|
}
|
|
|
|
// Token: 0x06000407 RID: 1031 RVA: 0x0000700C File Offset: 0x0000520C
|
|
[ExcludeFromDocs]
|
|
public static void DrawLine(Vector3 start, Vector3 end, Color color)
|
|
{
|
|
bool flag = true;
|
|
float num = 0f;
|
|
Debug.INTERNAL_CALL_DrawLine(ref start, ref end, ref color, num, flag);
|
|
}
|
|
|
|
// Token: 0x06000408 RID: 1032 RVA: 0x00007030 File Offset: 0x00005230
|
|
[ExcludeFromDocs]
|
|
public static void DrawLine(Vector3 start, Vector3 end)
|
|
{
|
|
bool flag = true;
|
|
float num = 0f;
|
|
Color white = Color.white;
|
|
Debug.INTERNAL_CALL_DrawLine(ref start, ref end, ref white, num, flag);
|
|
}
|
|
|
|
// Token: 0x06000409 RID: 1033
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_DrawLine(ref Vector3 start, ref Vector3 end, ref Color color, float duration, bool depthTest);
|
|
|
|
// Token: 0x0600040A RID: 1034 RVA: 0x0000705C File Offset: 0x0000525C
|
|
[ExcludeFromDocs]
|
|
public static void DrawRay(Vector3 start, Vector3 dir, Color color, float duration)
|
|
{
|
|
bool flag = true;
|
|
Debug.DrawRay(start, dir, color, duration, flag);
|
|
}
|
|
|
|
// Token: 0x0600040B RID: 1035 RVA: 0x00007078 File Offset: 0x00005278
|
|
[ExcludeFromDocs]
|
|
public static void DrawRay(Vector3 start, Vector3 dir, Color color)
|
|
{
|
|
bool flag = true;
|
|
float num = 0f;
|
|
Debug.DrawRay(start, dir, color, num, flag);
|
|
}
|
|
|
|
// Token: 0x0600040C RID: 1036 RVA: 0x00007098 File Offset: 0x00005298
|
|
[ExcludeFromDocs]
|
|
public static void DrawRay(Vector3 start, Vector3 dir)
|
|
{
|
|
bool flag = true;
|
|
float num = 0f;
|
|
Color white = Color.white;
|
|
Debug.DrawRay(start, dir, white, num, flag);
|
|
}
|
|
|
|
// Token: 0x0600040D RID: 1037 RVA: 0x000070C0 File Offset: 0x000052C0
|
|
public static void DrawRay(Vector3 start, Vector3 dir, [UnityEngine.Internal.DefaultValue("Color.white")] Color color, [UnityEngine.Internal.DefaultValue("0.0f")] float duration, [UnityEngine.Internal.DefaultValue("true")] bool depthTest)
|
|
{
|
|
Debug.DrawLine(start, start + dir, color, duration, depthTest);
|
|
}
|
|
|
|
// Token: 0x0600040E RID: 1038
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public static extern void Break();
|
|
|
|
// Token: 0x0600040F RID: 1039
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public static extern void DebugBreak();
|
|
|
|
// Token: 0x06000410 RID: 1040 RVA: 0x000070D4 File Offset: 0x000052D4
|
|
public static void Log(object message)
|
|
{
|
|
Debug.unityLogger.Log(LogType.Log, message);
|
|
}
|
|
|
|
// Token: 0x06000411 RID: 1041 RVA: 0x000070E4 File Offset: 0x000052E4
|
|
public static void Log(object message, Object context)
|
|
{
|
|
Debug.unityLogger.Log(LogType.Log, message, context);
|
|
}
|
|
|
|
// Token: 0x06000412 RID: 1042 RVA: 0x000070F4 File Offset: 0x000052F4
|
|
public static void LogFormat(string format, params object[] args)
|
|
{
|
|
Debug.unityLogger.LogFormat(LogType.Log, format, args);
|
|
}
|
|
|
|
// Token: 0x06000413 RID: 1043 RVA: 0x00007104 File Offset: 0x00005304
|
|
public static void LogFormat(Object context, string format, params object[] args)
|
|
{
|
|
Debug.unityLogger.LogFormat(LogType.Log, context, format, args);
|
|
}
|
|
|
|
// Token: 0x06000414 RID: 1044 RVA: 0x00007118 File Offset: 0x00005318
|
|
public static void LogError(object message)
|
|
{
|
|
Debug.unityLogger.Log(LogType.Error, message);
|
|
}
|
|
|
|
// Token: 0x06000415 RID: 1045 RVA: 0x00007128 File Offset: 0x00005328
|
|
public static void LogError(object message, Object context)
|
|
{
|
|
Debug.unityLogger.Log(LogType.Error, message, context);
|
|
}
|
|
|
|
// Token: 0x06000416 RID: 1046 RVA: 0x00007138 File Offset: 0x00005338
|
|
public static void LogErrorFormat(string format, params object[] args)
|
|
{
|
|
Debug.unityLogger.LogFormat(LogType.Error, format, args);
|
|
}
|
|
|
|
// Token: 0x06000417 RID: 1047 RVA: 0x00007148 File Offset: 0x00005348
|
|
public static void LogErrorFormat(Object context, string format, params object[] args)
|
|
{
|
|
Debug.unityLogger.LogFormat(LogType.Error, context, format, args);
|
|
}
|
|
|
|
// Token: 0x06000418 RID: 1048
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public static extern void ClearDeveloperConsole();
|
|
|
|
// Token: 0x170000DC RID: 220
|
|
// (get) Token: 0x06000419 RID: 1049
|
|
// (set) Token: 0x0600041A RID: 1050
|
|
public static extern bool developerConsoleVisible
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x0600041B RID: 1051 RVA: 0x0000715C File Offset: 0x0000535C
|
|
public static void LogException(Exception exception)
|
|
{
|
|
Debug.unityLogger.LogException(exception, null);
|
|
}
|
|
|
|
// Token: 0x0600041C RID: 1052 RVA: 0x0000716C File Offset: 0x0000536C
|
|
public static void LogException(Exception exception, Object context)
|
|
{
|
|
Debug.unityLogger.LogException(exception, context);
|
|
}
|
|
|
|
// Token: 0x0600041D RID: 1053 RVA: 0x0000717C File Offset: 0x0000537C
|
|
public static void LogWarning(object message)
|
|
{
|
|
Debug.unityLogger.Log(LogType.Warning, message);
|
|
}
|
|
|
|
// Token: 0x0600041E RID: 1054 RVA: 0x0000718C File Offset: 0x0000538C
|
|
public static void LogWarning(object message, Object context)
|
|
{
|
|
Debug.unityLogger.Log(LogType.Warning, message, context);
|
|
}
|
|
|
|
// Token: 0x0600041F RID: 1055 RVA: 0x0000719C File Offset: 0x0000539C
|
|
public static void LogWarningFormat(string format, params object[] args)
|
|
{
|
|
Debug.unityLogger.LogFormat(LogType.Warning, format, args);
|
|
}
|
|
|
|
// Token: 0x06000420 RID: 1056 RVA: 0x000071AC File Offset: 0x000053AC
|
|
public static void LogWarningFormat(Object context, string format, params object[] args)
|
|
{
|
|
Debug.unityLogger.LogFormat(LogType.Warning, context, format, args);
|
|
}
|
|
|
|
// Token: 0x06000421 RID: 1057 RVA: 0x000071C0 File Offset: 0x000053C0
|
|
[Conditional("UNITY_ASSERTIONS")]
|
|
public static void Assert(bool condition)
|
|
{
|
|
if (!condition)
|
|
{
|
|
Debug.unityLogger.Log(LogType.Assert, "Assertion failed");
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000422 RID: 1058 RVA: 0x000071DC File Offset: 0x000053DC
|
|
[Conditional("UNITY_ASSERTIONS")]
|
|
public static void Assert(bool condition, Object context)
|
|
{
|
|
if (!condition)
|
|
{
|
|
Debug.unityLogger.Log(LogType.Assert, "Assertion failed", context);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000423 RID: 1059 RVA: 0x000071F8 File Offset: 0x000053F8
|
|
[Conditional("UNITY_ASSERTIONS")]
|
|
public static void Assert(bool condition, object message)
|
|
{
|
|
if (!condition)
|
|
{
|
|
Debug.unityLogger.Log(LogType.Assert, message);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000424 RID: 1060 RVA: 0x00007210 File Offset: 0x00005410
|
|
[Conditional("UNITY_ASSERTIONS")]
|
|
public static void Assert(bool condition, string message)
|
|
{
|
|
if (!condition)
|
|
{
|
|
Debug.unityLogger.Log(LogType.Assert, message);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000425 RID: 1061 RVA: 0x00007228 File Offset: 0x00005428
|
|
[Conditional("UNITY_ASSERTIONS")]
|
|
public static void Assert(bool condition, object message, Object context)
|
|
{
|
|
if (!condition)
|
|
{
|
|
Debug.unityLogger.Log(LogType.Assert, message, context);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000426 RID: 1062 RVA: 0x00007240 File Offset: 0x00005440
|
|
[Conditional("UNITY_ASSERTIONS")]
|
|
public static void Assert(bool condition, string message, Object context)
|
|
{
|
|
if (!condition)
|
|
{
|
|
Debug.unityLogger.Log(LogType.Assert, message, context);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000427 RID: 1063 RVA: 0x00007258 File Offset: 0x00005458
|
|
[Conditional("UNITY_ASSERTIONS")]
|
|
public static void AssertFormat(bool condition, string format, params object[] args)
|
|
{
|
|
if (!condition)
|
|
{
|
|
Debug.unityLogger.LogFormat(LogType.Assert, format, args);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000428 RID: 1064 RVA: 0x00007270 File Offset: 0x00005470
|
|
[Conditional("UNITY_ASSERTIONS")]
|
|
public static void AssertFormat(bool condition, Object context, string format, params object[] args)
|
|
{
|
|
if (!condition)
|
|
{
|
|
Debug.unityLogger.LogFormat(LogType.Assert, context, format, args);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000429 RID: 1065 RVA: 0x00007288 File Offset: 0x00005488
|
|
[Conditional("UNITY_ASSERTIONS")]
|
|
public static void LogAssertion(object message)
|
|
{
|
|
Debug.unityLogger.Log(LogType.Assert, message);
|
|
}
|
|
|
|
// Token: 0x0600042A RID: 1066 RVA: 0x00007298 File Offset: 0x00005498
|
|
[Conditional("UNITY_ASSERTIONS")]
|
|
public static void LogAssertion(object message, Object context)
|
|
{
|
|
Debug.unityLogger.Log(LogType.Assert, message, context);
|
|
}
|
|
|
|
// Token: 0x0600042B RID: 1067 RVA: 0x000072A8 File Offset: 0x000054A8
|
|
[Conditional("UNITY_ASSERTIONS")]
|
|
public static void LogAssertionFormat(string format, params object[] args)
|
|
{
|
|
Debug.unityLogger.LogFormat(LogType.Assert, format, args);
|
|
}
|
|
|
|
// Token: 0x0600042C RID: 1068 RVA: 0x000072B8 File Offset: 0x000054B8
|
|
[Conditional("UNITY_ASSERTIONS")]
|
|
public static void LogAssertionFormat(Object context, string format, params object[] args)
|
|
{
|
|
Debug.unityLogger.LogFormat(LogType.Assert, context, format, args);
|
|
}
|
|
|
|
// Token: 0x170000DD RID: 221
|
|
// (get) Token: 0x0600042D RID: 1069
|
|
public static extern bool isDebugBuild
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x0600042E RID: 1070
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
internal static extern void OpenConsoleFile();
|
|
|
|
// Token: 0x0600042F RID: 1071
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
internal static extern void GetDiagnosticSwitches(List<DiagnosticSwitch> results);
|
|
|
|
// Token: 0x06000430 RID: 1072
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
internal static extern void SetDiagnosticSwitch(string name, object value, bool setPersistent);
|
|
|
|
// Token: 0x06000431 RID: 1073 RVA: 0x000072CC File Offset: 0x000054CC
|
|
[Obsolete("Assert(bool, string, params object[]) is obsolete. Use AssertFormat(bool, string, params object[]) (UnityUpgradable) -> AssertFormat(*)", true)]
|
|
[Conditional("UNITY_ASSERTIONS")]
|
|
public static void Assert(bool condition, string format, params object[] args)
|
|
{
|
|
if (!condition)
|
|
{
|
|
Debug.unityLogger.LogFormat(LogType.Assert, format, args);
|
|
}
|
|
}
|
|
|
|
// Token: 0x170000DE RID: 222
|
|
// (get) Token: 0x06000432 RID: 1074 RVA: 0x000072E4 File Offset: 0x000054E4
|
|
[Obsolete("Debug.logger is obsolete. Please use Debug.unityLogger instead (UnityUpgradable) -> unityLogger")]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public static ILogger logger
|
|
{
|
|
get
|
|
{
|
|
return Debug.s_Logger;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000057 RID: 87
|
|
internal static ILogger s_Logger = new Logger(new DebugLogHandler());
|
|
}
|
|
}
|