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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
This is a duplicate of issue #1375015