UI Material: Defining Texture Coordinates in Pixels

Hello there,

I searched intensely for this topic, but found literally nothing. I really would like to know if and how it is possible to recalculate texture coordinates to define the UVs in pixels. I guess, it can not be so complicated to achieve it, but I’m having a hard time figuring it out. It’s hard to explain the background of it, so I just skip it. Maybe there’s a Tech Artist out there who have the magic formula for it?

All I know is, that this way is not the right one.

Help is really appreciated. Thanks.

Could these be what you’re looking for?

310586-uvs.png

Thank you for the infos. It’s almost exactly what I want, ScreenAlignedPixelToPixelUVs is very helpful, except that it should not be screen aligned.

In case anyone else is still hunting for this I found this node GetUserInterfaceUV.
image

1 Like