I’m having this material function to show up when a pawn taking damage.
But the timer plays infinitely, I want it to play once from 1 back to 0.
Currently, It’s working with setting the parameter to 1 and then back to 0 but I don’t like this solution because it’s implemented by delay.
Also, I have a death dissolve effect on the mobs, and If I’m adding the damage flash function the dissolving color is gone upon death.
I’d say use material instances and manipulate the parameters using blueprint. Much easier
Did you manage to solve that problem?
I’m having the exact same issue.
Also, if I’m using the multiply to connect the damage function and the dissolve function, the damage flash doesn’t work.
Instead of using a timer in the material, use a scalar parameter as input…
Create an instance of the material and use SetScalarParameter to set the “time” manually from a ticked or times blueprint events.