how I could get a reference to the UV coordinates of a material?

how I could get a reference to the UV coordinates of a material in an actor or pawn?

I bet 1000 bucks you don’t have the answer and if you do I will pinky promise give you the money

UV coordinates from a line trace

2 Likes

No not that I mean like how do I create a variable reference of a Materials UV coordinates, so I can call them inside of a pawn or an actor…

@ClockworkOcean is right if you use the UV space mapped to a mesh.
There is nothing to look up from a material. UV is input data to a material not output.

Technically your answer is create a 2D vector of which both components map from 0 to 1 and feed that into a material. Nothing else.
You can use a material parameter for this.

https://www.youtube.com/watch?v=yVMyXZzScsY

1 Like

can you please help me better understand what your saying, because what I think your telling me is to get parameter name of Parameter inside of my Pawn or Actor class to get a ref to the coords?

like this?

1 Like

when i plug in the param it messes it up though…

plz show me an example

On your example you are using a scalar parameter. A UV is a vector of 2 values U and V.
Try this out:

The fun part is that you offset the UV by time or for example a sinewave, you get a texture moving over a mesh, like waves on water. This is basic use of UV.