Tracking Line Position in Material to Add Object Height

Hi,

I have a material where a line is moving in X. I want a box to increase its height by 50 every time it passes through the line, and then return to its normal height.

Is there a way to track the line’s position within the material to trigger the box to go up as soon as it touches the line?

Thanks!



There is Material Parameter Collections feature which should suit your case.
You can add two Vector parameters (position and extent) and set them up in some blueprint (or just the defaults inside the MPC editor) and then use them as a base of calculations for your material.