No matter if the value of a parameter you override in a Material Instance is the same as it's parent or not, it always shows the "reset to default" button. See static bool param in the images below:
[Image Removed]
[Image Removed]
In the rest of the Editor UI, the "reset to default" button only shows up when the value is not currently set to the default, so it can be confusing.
Would be easier to track down situations where you are unnecessarily overriding base material parameters (and thus duplicating shader code in the case of static switches, etc) if this reflected whether it was the default or not.
Create a material instance of a material w/parameters, check that edited parameters don't have a reset button unless they are different from the default value
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-20882 in the post.
0 |
Component | UE - Rendering Architecture - Materials |
---|---|
Affects Versions | 4.8.3, 4.9 |
Target Fix | 4.17 |
Fix Commit | 3388808 |
---|---|
Main Commit | 3432852 |
Created | Sep 9, 2015 |
---|---|
Resolved | Apr 11, 2017 |
Updated | Nov 2, 2021 |