Can no longer use a static switch for a static bool material function input

We can no longer pass static bool or static bool parameter nodes into a static bool material function input via a static switch node.

All previous versions of UE have had this functionality, including 5.6. In 5.7, our migrated materials load and work just fine, but we cannot break these connections and then reattach them or create new ones.

Here is a very primitive example in 5.7. Even though the types are static bools, we cannot connect them via a static switch. We get the error “Float is not compatible with Bool”.

This works in 5.6 and all previous versions of UE 5.

Please see the attached uassets here: Material_StaticSwitchIssue.zip

The download icon is in the upper left corner.

As a side note, we were unable to upload a zip file:

Update:

It appears you can no longer output a static bool or static bool parameter either. E.g. connecting a static bool to a material function output is no longer possible.

Hi [mention removed]​,

Thanks for reporting the issue. I’ve tested the main development branch of the engine, and it looks like this issue has already been addressed there. Unfortunately, that means it’s likely a bug present in the latest released version of the engine.

For Unreal Engine 5.8, this issue should be fixed, although that would require waiting for the next engine release. In the meantime, I’ll look for the specific fix commit so your team can integrate it directly into your engine if needed. Would that be possible for you and your team?

Best regards,

Joan

Hi Joan,

Thank you for looking into this. Yes, we could compile a custom version if needed.

Thanks,

Linden

Hi [mention removed]​,

Here you have the fix commit :slightly_smiling_face:: https://github.com/EpicGames/UnrealEngine/commit/0532a3ddc29b8bc736013d62978318a34fccfde8

P4: CL 47423097

Best Regards,

Joan