public static LogEntry LogOnScreen(string text) { var res = new LogEntry(text); LogDrawer.Log(res); return(res); }
/// <summary> /// Draws text directly on the screen. /// Returns the <see cref="DebugPlusNS.LogEntry"/> to change drawing color and duration. /// </summary> /// <param name="text"></param> /// <returns>The fluent object to add parameters.</returns> public static LogEntry LogOnScreen(string text) { var res = new LogEntry(text); #if UNITY_EDITOR LogDrawer.Log(res); #endif return(res); }
/// <summary> /// Draws text directly on the screen. /// Returns the <see cref="DebugPlusNS.LogEntry"/> to change drawing color and duration. /// </summary> /// <param name="text"></param> /// <returns>The fluent object to add parameters.</returns> public static LogEntry LogOnScreen(string text) { var res = new LogEntry(text); #if UNITY_EDITOR LogDrawer.Log(res); #else if (DebugPlusManager.I.enableInBuild) { LogDrawer.Log(res); } #endif return(res); }