Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by mike1233 · Dec 27, 2016 at 01:31 PM · console.log

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

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

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)

UsePlayerLog


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

Logging


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

Source : https://forum.unity3d.com/threads/is-it-possible-to-disable-all-debug-logs-in-builds.361553/#post-2781285

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image mike1233 · Dec 27, 2016 at 01:40 PM 0
Share

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?

avatar image Hellium mike1233 · Dec 27, 2016 at 01:45 PM 1
Share

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.

avatar image mike1233 Hellium · Dec 27, 2016 at 01:50 PM 0
Share

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

Show more comments
avatar image Hellium mike1233 · Dec 27, 2016 at 01:50 PM 1
Share

New edit of my answer, which, will surely fit your needs : https://docs.unity3d.com/ScriptReference/Logger-logEnabled.html

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

84 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges