Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Editor Build vs Batchmode CommandLine Build

Discussion in 'Editor & General Support' started by aer0ace, Apr 18, 2022.

  1. aer0ace

    aer0ace

    Joined:
    May 11, 2012
    Posts:
    1,513
    I built a test project with the in-Editor build dialog, and the same project with the commandline, using batchMode, and the rendering results are different. It's in the attached image.

    The left image is from the Editor build, the right image is from the commandline batchmode build.

    The cube on the right uses the Default Standard Shader, and the cube on the left uses a default material with the default SurfaceShader.

    Why does the commandline batchmode render with the yellowish darker tint whereas the editor build results in the expected white tint?

    The command line command is:
    Code (csharp):
    1. "C:\Program Files\Unity\Hub\Editor\2020.3.32f1\Editor\Unity.exe" -batchmode -projectPath c:\project\path -buildWindows64Player c:\output\game.exe -quit
    This is using 2020.3.32f1
     

    Attached Files:

    Last edited: Apr 18, 2022
  2. aer0ace

    aer0ace

    Joined:
    May 11, 2012
    Posts:
    1,513