From the ticket:
In a material instance using the attached master material if A is TRUE and B is FALSE I expect to be able to configure param C in the UI.
However param C is shown only when UseswitchParam is FALSE.
When UseswitchParam is TRUE the param is not shown but it's still used (output is equal to C value, not 1).
The problem may be in FMaterialEditorUtilities::GetStaticswitchExpressionValue: you treat UMaterialExpressionStaticswitchParameter as a UMaterialExpressionStaticBoolParameter while you should treat it as a Staticswitch with a BoolParameter connected to Value and so, you should have get it's value and then explore the true or false branch returning its value.
I attached a possibile fix for the issue.
I am not able to find world outliner how to enable it?
How to achieve HLSL Multiple Render Target in Material blueprints?
How can i modify the param name in EQS node
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
What method is used to fill polygonal regions when drawing spline mesh at run time?
What properties of the progress bar can be used for drag and drop highlighting?
What property of the Slider is the image used when dragging?
Teleporter in the Creative Hub is Locked and cannot be accessed
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-147298 in the post.
1 |
Component | UE - Rendering Architecture - Materials |
---|---|
Affects Versions | 5.0 |
Created | Mar 28, 2022 |
---|---|
Updated | Sep 22, 2022 |