I want to create something that will allow the ability to start and stop a material from playing basically.
I have a master material that is used for water. I want to be able to add a Material Function that will allow me to start / stop the water affects at anytime.
I don’t know if you can use a blueprint to start/stop time being passed into a material instance dynamic (MID) or not. You could always keep a track of the time yourself and then pass that to a MID as a parameter to be fed into the time input of a panner node and then just halt the time inside your blueprint.
Here is an image that I made showing how to simply switch to static uv’s instead of the panners uv’s using a material function and a boolean parameter:
It’s trivial. Make a float or vector parameter in the material, plug it into the “Speed” input of the Panner (if that’s what you are using), and then control that parameter from the blueprint.