Unity Wrap Debug Class Jan 25th, 2012 Debug.cs I just wanted to clear other “Debug.Log” using UnityEngine; using System.Collections; using System; using System.IO; using System.Text.RegularExpressions; using UnityEngineInternal; public static class Debug { public static bool isDebugBuild = true; public static void Log (object message) { if (isDebugBuild) UnityEngine.Debug.Log (message + hr); } public static void Log (object message, UnityEngine.Object context) { if (isDebugBuild) UnityEngine.Debug.Log (message, context); } public static void LogError (object message) { if (isDebugBuild) UnityEngine.Debug.LogError (message); } public static void LogError (object message, UnityEngine.Object context) { if (isDebugBuild) UnityEngine.Debug.LogError (message, context); } public static void LogWarning (object message) { if (isDebugBuild) UnityEngine.Debug.LogWarning (message.ToString ()); } public static void LogWarning (object message, UnityEngine.Object context) { if (isDebugBuild) UnityEngine.Debug.LogWarning (message.ToString (), context); } } referrel http://forum.unity3d.com/threads/38720-Debug.Log-and-needless-spam