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
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
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