Viewport

Viewport

Windows
MacOS
Linux

Actions

Add to Player Screen

Adds the widget to the game's viewport in a section dedicated to the player. This is valuable in a split screen game where you need to only show a widget over a player's portion of the viewport.

Target is User Widget

Add to Viewport

Adds it to the game's viewport and fills the entire screen, unless SetDesiredSizeInViewport is called to explicitly set the size.

Target is User Widget

Get Alignment in Viewport

Get Alignment in Viewport

Target is User Widget

Get Anchors in Viewport

Get Anchors in Viewport

Target is User Widget

Set Alignment in Viewport

Set Alignment in Viewport

Target is User Widget

Set Anchors in Viewport

Set Anchors in Viewport

Target is User Widget

Set Desired Size in Viewport

Set Desired Size in Viewport

Target is User Widget

Set Position in Viewport

Sets the widgets position in the viewport.

Target is User Widget

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback