Hello,
It looks like UMaterialInterface::GetStaticComponentMaskParameterValue is getting the parameter value from the static switch list instead of from the StaticComponentMask list
GitHub branch 5.8 still looks to have this issue.
The solution might be simply changing EMaterialParameterType::StaticSwitch to instead be EMaterialParameterType::StaticComponentMask in the aforementioned function.
Cheers
[Attachment Removed]