help I am trying to get the players viewport as a texture 2d

help I am trying to get the players viewpoint and ui to a texture 2d please add this.

Hey @devin_gaming
You could use

  • SceneCapture2D and a WidgetComponent
    Or
  • SceneCapture2D and a duplicate of your HUD where everything is wrapped in a RetainerBox

What do you want to achieve? Maybe there is another solution.

how do I duplicate the Hud

You can duplicate it in the content browser. Right click, duplicate. Maybe a child blueprint does also work.

I want the player umg or widget as a texture

Yes, I know. Which version of Unreal are you using?

4.26

One example with a material and a widget in front of it
One example with a material where the widget gets rendered into the material

RetainerBox did not work as I expected.

ok it is using 3d widgets on the player that the camera cant see. the 3d widget has a node to get as a render target texture that is combined at runtime.

Correct. Does this work for you?

yes

1 Like