Assume I have square texture in my material and an alpha Yellow smaller Square inside it as another Layer that should be able to move around, similar to the picture below:
I want to create a BP and material where I can control the position of the yellow square in realtime on the red background and get unique values from that position.
For instance Yellow square default value is = 0 at the centre and as it moves upper right it gives a unique value similar to what you may get from a color picker but it doesn’t have to be that, can be any unique value that I can use to create an action in BP. So maybe upper right can be a number like +200 and lower right can be -200?
Hopefully you get the idea and I hope to start with what i can do with the material/BP setup in order for them to talk to each other this way.
Lastly of course i want to limit the Yellow square movement to the dimensions of the red square BG so the yellow square doesn’t move out of the Square dimension given.
Any ideas or small hints can be helpful, I don’t expect full fledged explanations that can take up anyone’s time.
Thanks!