Align a text render in screen space so, it's always horizontal/vertical, no skews, using material only.

Hello!
Is there a way to align a text render to screen so, it’s always horizontal/vertical in screen space without 3D skews using only materials so, it also works in editor viewport?

I’ve searched here on the forums and could not find the answer.

I’m not looking for the “usual” rotate around Z axis in the world.

What I need is really to align a text render to a screen space so, it looks like it’s just overpainted like in photoshop and it’s location is aligned/projected from the location of it in the world.
And it stays like this no matter how I rotate the camera. So, like only X,Y on the screen change.

Best!

No. Use User Widget blueprint with TextBox control and Widget component with Space = Screen.

I’ve tried widgets. They work in Game. But I need it to work in editor as well, hence I’m trying to do it via material. :slight_smile:

I’ve found a relative good solution. It still has some skews and distortion at extreme camera angles, but it’s ok for me. If anyone interested, here is the material graph.

I will not mark it as Solution for now. Maybe someone knows a better way? :slight_smile:

1 Like