Search Unity

Question How to hide the version and other information displayed in the console at startup

Discussion in 'Web' started by K_Kuriyama, Mar 13, 2023.

  1. K_Kuriyama

    K_Kuriyama

    Joined:
    Jul 4, 2020
    Posts:
    66
    With the default settings, I see the following logs when I launch the Unity app in the browser, can these be hidden?

    Loading player data from data.unity3d
    4c06cf4b-d81e-40c6-bc43-cf5677b0eceb:10 Initialize engine version: 2022.2.2f1 (c93c5d3acf5b)
    4c06cf4b-d81e-40c6-bc43-cf5677b0eceb:10 [Subsystems] Discovering subsystems at path UnitySubsystems
    WebGL.loader.js:1 Creating WebGL 2.0 context.
    4c06cf4b-d81e-40c6-bc43-cf5677b0eceb:10 Renderer: WebKit WebGL
    4c06cf4b-d81e-40c6-bc43-cf5677b0eceb:10 Vendor: WebKit
    4c06cf4b-d81e-40c6-bc43-cf5677b0eceb:10 Version: OpenGL ES 3.0 (WebGL 2.0 (OpenGL ES 3.0 Chromium))
    4c06cf4b-d81e-40c6-bc43-cf5677b0eceb:10 GLES: 3
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,975
    Why? This isn‘t sensitive information.
     
  3. K_Kuriyama

    K_Kuriyama

    Joined:
    Jul 4, 2020
    Posts:
    66
    @CodeSmile
    We do not want it to be displayed if possible, as we believe that knowing the Unity version increases the risk for vulnerabilities.
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,975
    Okay in that case anyone interested in such vulnerabilities has to perform one or two extra clicks to get that information. You don‘t win anything from suppressing the console logs, that info is still in the build.