Search Issue Tracker
Active
Under Consideration for 6000.1.X
Votes
0
Found in
2022.3.62f1
6000.0.50f1
6000.1.4f1
Issue ID
UUM-107787
Regression
No
Script resets to use the previous Skybox color when saving the Scene changes
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Dev Dunk Studio/Screen Space Fog/Samples/Scenes/Sample.unity” Scene
3. In Hierarchy, select Manager GameObject
4. In Inspector, disable “Replace Skybox“
5. Click on Scene view
6. Press “CTRL“ + “S” keys to save
Expected result: Change is saved, and a blue sky is present
Actual result: Skybox is reset to white, but “Replace Skybox” is disabled
Reproducible with: 2022.3.62f1, 6000.0.50f1, 6000.1.4f1, 6000.2.0a8 (8a36f491c000)
Not reproducible with: 6000.2.0b3
Fixed in: 6000.2.0a9 (2aeb7e9a02a2)
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Note:
- Sometimes the script settings do not show in the Inspector for the Manager GameObject
Comments (4)
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 warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
DevDunk
Oct 14, 2025 13:48
Issue thread: https://discussions.unity.com/t/fixed-keywords-reset-when-saving-scene/1690249
DevDunk
Oct 14, 2025 13:36
For keyword enums you need to set an int to the base keyword value.
So if you have
_ _KEYWORD_ONE, _KEYWORD_TWO, _KEYWORD_THREE
And you need to enable keyword three in the enum, you need to disable all keywords, then enable '_KEYWORD_THREE', and then set the int _KEYWORD to 2
DevDunk
Oct 14, 2025 13:20
I found that you need to set an int with the same name as the keyword in order for the changes to save… Please fix this
if (replaceSkybox)
{
material.EnableKeyword(ShaderIDs.ReplaceSkyboxKeyword);
material.SetInt("_REPLACE_SKYBOX", 1); //REQUIRED TO SAVE CHANGE
}
else
{
material.DisableKeyword(ShaderIDs.ReplaceSkyboxKeyword);
material.SetInt("_REPLACE_SKYBOX", 0); //REQUIRED TO SAVE CHANGE
}
DevDunk
Oct 06, 2025 09:23
This seems to only happen when setting keywords, not when setting float values etc