Ok I did several searches as I assume this is a very common issue, but perhaps I’m not searching correctly.
How do I hide the
‘UnityEngine.MonoBehaviour:print(Object)’
or
‘UnityEngine.Debug.Log(Object)’
lines in the Console???
This should fix your problem
At the end of each debug log put
e.g.,
Debug.Log("print this ");
this will remove the “UnityEngine.Debug.Log(Object)”
in the output console.
In Unity 2017.3.1 is number of rows for Debug.Log() defined in Log Entry. Just switch to 1 Lines and it’s done.
In the Console Window there are three Toggle Buttons at the top right corner.
- Shows ‘UnityEngine.MonoBehaviour:print(Object)’ or ‘UnityEngine.Debug.Log(Object)’ lines
- Shows Warning in yellow text.
- Shows Errors in red text.
Highlighted version of Button signifies that it will display the content. Toggling that Button to Non-Highlighted version will stop the content from being Displayed.
As you can see in the Image below. Button under “1” is non-highlighted. Which means its disabled. Hence it stops Debug messages from being displayed.
Just a heads-up, as of v2017.3, you can use the Console tab menu to selectively turn Stack Trace logging on/off for different log levels (regular/verbose, warning, assert, error, exception).
I believe the “ScriptOnly” option lets you focus only on your warnings/errors, rather than anything thrown by the system at that level.
You can also change the number of lines allowed per log-entry in the “Log Entry” option.
If sb. want to disable Editor.log for performance problem, just add command line as bellow( work in win10)
“H:\Program Files\Unity\Editor\Unity.exe” -logFile NUL