Unity Issue Tracker - Shader Graph property default values are lost when the property is no longer exposed
Fixed
UUM-46779
Shader Graph property default values are lost when the property is no longer exposed
Unity: ShaderGraph
Fixed
2023.3.X
Won't Fix
2023.2.X
2022.3.X
2021.3.X
verified as fixed in 2023.3.0a11 and ShaderGraph 17.0.1
Some feature work that addresses this case will be available in 23.3.
This is by design, unexposed properties should be driven through scripts.
As a part of some feature work landing 23.3, you'll find that default values for hidden non-globals are now saved on the material.
This is by design, unexposed properties should be driven through scripts.
As a part of some feature work landing 23.3, you'll find that default values for hidden non-globals are now saved on the material.
When making a property not exposed in Shader Graph, the default value is lost/reset
Open the Sample Scene too - a sphere with the material using that shader graph shader should be loaded.
select the color property and make it not exposed anymore
Expected result:
the material in the scene should still have the blue outline, like the material preview in the shadergraph editor and like the previously set default value
Actual result:
the material has no glow (as if the color property reverted to black instead)
Note: I tested this with 2023.2, 2023.1 and 2022.3. (all with their latest respective shadergraph packages) . This issues doesn't seem to be a regression.
Prioritise and Follow this issue
Have a workaround or additional info about this issue?