I don’t think you can. You’ll need to swap materials.
it maybe helps you
Do the same thing with a Float value and an IF node. You can modify this Float value through the blueprint.