For end users do console errors and messages generate when they play the game ?
if you get console messages/warnings etc in unity and choose to leave them there.. then
if you make a game and people download it and play will those messages keep generating somewhere there also? my point behind this is PERFORMANCE . if these message do generate they will slow end user game play down.
so do console messages only appear in unity or also in the game when downloaded
Answer by Hellium · Dec 27, 2016 at 01:36 PM
I think that you can disable the logs for Standalone builds by unchecking the Use Player Log
option in the Player Settings (Resolution and Presentation > Standalone Player Options)
Else, if you are using Unity 5.4+, take a look at the Player Settings. At the bottom of the Other Settings
section, you will see Logging
. Here, you can manage the logging level of errors, warnings, ... Select None
for all and it should be fine, I guess...
Don't worry though, the log messages will never be shown to the player unless the Development Build
and Script Debugging
options are checked in your Build Settings
Last solution I've found, is by using a script to manage this :
#if DEVELOPMENT_BUILD
Debug.logger.logEnabled=true;
#else
Debug.logger.logEnabled=false;
#endif
https://docs.unity3d.com/ScriptReference/Logger-logEnabled.html
I will check that out
ok so can I ask even if I disable uncheck there will they still be generated ? you see im worried about the performance so if this justs masks the messages to me but they still generate the performance will still be affected so my question is if I uncheck these will it completely stop the messages form being generated thus improving performance?
and 2nd question if someone downloads my game will these messages still be generated either way?
I've edited my answer. I think that unchecking "Use Player Logs" in the Player Settings will completely remove any log generation in your final build.
I think that sounds correct
can I ask you 1 more thing if I were to lets say leave the messages that generate and do not uncheck anything
will they generate when someone downloads the game and plays.
please note; I do understand they wont see the messages but I mean will they still generate behind the scenes somewhere which obviously slows performance
you see I want to improve performance issues
New edit of my answer, which, will surely fit your needs : https://docs.unity3d.com/ScriptReference/Logger-logEnabled.html
Your answer
![](https://koobas.hobune.stream/wayback/20220612103524im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
possible to ping project asset on log click ? 0 Answers
Compiler Error, Cannot Go Into Playmode 2 Answers
[HELP] No info shows up in the console! 0 Answers
Are Debug.Log calls and errors displayed in the console in chronological order? 1 Answer
Console does not Debug.Log - all 3 Icons are activated 1 Answer