How to dynamically set an overlay material opacity based on a parameter?

Basically I have some objects which I want to set their overlay material dynamically based on a parameter (Construction Progress), which will be added to the object. I want it to transition from a green color overlay back to its original texture from the bottom to the top.
My current implementation works, but it’s not proportional to the object height, which means it can transition too quickly or slowly depending on the object.

Hi @Rados1,

You’re looking for a Local Space Gradient

This mask is set as a direct relation to object height in Unreal Units. Because of this, If you combine it with an Object Bounds node, you can get a consistent 0-1 gradient over the object’s height.

Now if you need to add a gradient, that’s where things get a little tricky. Let me know if you need help sorting that out.