Search Issue Tracker
Duplicate
Votes
0
Found in
2019.4
2020.3
2020.3.4f1
2021.2
2022.1
Issue ID
1380183
Regression
No
GameObject becomes darker when building with Command Line
Reproduction steps:
1. Open the user's project "BuildBug.zip"
2. Open the "SampleScene" Scene from Assets > Scenes
3. Double click on "BG_Winion Male" in the Hierarchy and see the model's original color
4. Create a new folder (would recommend on Desktop) and copy its path
5. Open "BuidManager" script in Assets > Editor and change 15th line's "buildFolder" value to the path you copied
6. Through File Explorer, go to the project's folder
7. Right-click on "BuildGame.bat" and click Edit
8. Check if "UNITYEXE" path is the same as your Unity version's path (if not, change it and save it)
9. Double click on "BuildGame.bat" file and wait for the project to be built
10. Go to the folder mentioned in the 4th step and open "BuildBug.exe"
11. See the model's color
Expected result: both builds' "BG_Winion Male" model is the same color
Actual result: building with Command Line makes "BG_Winion Male" model darker compared with building with the Editor
Reproducible with: 2019.4.20f1, 2019.4.33f1, 2020.3.23f1, 2021.2.0a5, 2021.2.4f1, 2022.1.0a17
Could not test with: 2019.4.19f1, 2021.2.0a4 (The model is already dark in the Editor)
Notes:
- After opening the project and skipping 2-3 steps, the model in the Editor build is a bit darker than it should be, but after opening the "SampleScene" Scene (where the model is present) and Building and Running the model is in the correct color (both on Mono and IL2CPP)
- On versions, which it couldn't be tested on, the model is already dark, but in Prefab Mode model's brightness is normal
- Prefabs in Assets > Models have icons showing the model dark, but the model is in normal brightness in Prefab Mode or after dragging it to the Scene
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
This is a duplicate of issue #1375015