How to change the value of the StaticSwitchParameter?

Hey,

we are working on a custom material import. For special materials we are using the StaticSwitchParameter. We read that it is “static” because it can’t change on runtime and the value of the static switch is compiled into the shader.

But how can we change the value in C++ of a UMaterialInstanceConstant-object? There are only methods to change the value of textures, vectors and scalar values… but none for the switches.

Regards,