/// <summary> /// Logs a message to the console, regardless of log_verbosity settings /// </summary> public static void LogError(string msg) { #if UNIT_TESTING System.Console.WriteLine(msg); #else NativeDebugMethods.Log(msg, LogType.Error); #endif }
/// <summary> /// Logs a message to the console /// </summary> public static void Log(string msg, LogType type = LogType.Message) { #if UNIT_TESTING System.Console.WriteLine(msg); #else NativeDebugMethods.Log(msg, type); #endif }
/// <summary> /// Logs an error to console /// </summary> /// <param name="format"></param> /// <param name="args"></param> public static void LogError(string format, params object[] args) { #if UNIT_TESTING System.Console.WriteLine(format, args); #else NativeDebugMethods.Log(String.Format(format, args), LogType.Error); #endif }
/// <summary> /// Outputs a warning message /// </summary> /// <param name="format"></param> /// <param name="args"></param> public static void LogWarning(string format, params object[] args) { #if UNIT_TESTING System.Console.WriteLine(format, args); #else NativeDebugMethods.Warning(String.Format(format, args)); #endif }
/// <summary> /// Outputs a warning message /// </summary> public static void LogWarning(string msg) { #if UNIT_TESTING System.Console.WriteLine("[Warning]" + msg); #else NativeDebugMethods.Warning(msg); #endif }
/// <summary> /// Logs a message to the console, regardless of log_verbosity settings /// </summary> public static void LogAlways(string msg) { #if UNIT_TESTING System.Console.WriteLine(msg); #else NativeDebugMethods.LogAlways(msg); #endif }
public void DeleteSection(FrameProfilerSection profilerSection) { NativeDebugMethods.DeleteFrameProfilerSection(profilerSection.Handle); }
public FrameProfilerSection CreateSection() { return(new FrameProfilerSection(NativeDebugMethods.CreateFrameProfilerSection(Handle), this)); }
public static FrameProfiler Create(string name) { return(new FrameProfiler(NativeDebugMethods.CreateFrameProfiler(name))); }
public static void DrawBoundingBox(Vec3 pos, BoundingBox bbox, Color color, float timeout) { NativeDebugMethods.AddAABB(pos, bbox, color, timeout); }
public static void DrawLine(Vec3 startPos, Vec3 endPos, Color color, float timeout) { NativeDebugMethods.AddPersistentLine(startPos, endPos, color, timeout); }
public static void DrawText(string text, float size, Color color, float timeout) { NativeDebugMethods.AddPersistentText2D(text, size, color, timeout); }
public static void DrawDirection(Vec3 pos, float radius, Vec3 dir, Color color, float timeout) { NativeDebugMethods.AddDirection(pos, radius, dir, color, timeout); }
public static void DrawSphere(Vec3 pos, float radius, Color color, float timeout) { NativeDebugMethods.AddPersistentSphere(pos, radius, color, timeout); }