Hello, after build my project i see small console in game window (at one line). I dont have development build. The console appears at the top of the screen. Anyone know how to disable it?
I tried function in code:
Debug.ClearDeveloperConsole(); Debug.unityLogger.logEnabled = false; Debug.developerConsoleVisible = false;
console still visible…
This is a duplicate post
my solution (Tested on Unity2019.4)
this will only show exceptions
you can set it to LogType.Error for exceptions and errors and so on
#if !(DEVELOPMENT_BUILD || UNITY_EDITOR) Debug.unityLogger.filterLogType = LogType.Exception; #endif
or use
#if !(DEVELOPMENT_BUILD || UNITY_EDITOR) Debug.unityLogger.logEnabled = false; #endif