Unreal Engine Blueprints Unreal Engine Widget Blueprints 3 — Questions and Answers
Question 1: Which UMG panel widget automatically arranges its children in a grid with a configurable number of columns?
- Horizontal Box
- Vertical Box
- Uniform Grid Panel (Correct answer)
- Canvas Panel
Correct answer: Uniform Grid Panel
The Uniform Grid Panel places children into evenly spaced rows and columns based on a specified column count.
Question 2: What event in a Widget Blueprint fires once when the widget is fully constructed and added to the viewport?
- Event BeginPlay
- Event Construct (Correct answer)
- Event Initialize
- Event Tick
Correct answer: Event Construct
Event Construct is the Widget Blueprint equivalent of BeginPlay and runs after the widget hierarchy is built and the widget is added to the screen.
Question 3: How do you pass initial data into a Widget Blueprint when creating it with 'Create Widget'?
- Use Set Members in Struct after creation
- Expose public variables on the widget and set them before or just after creation (Correct answer)
- Override the widget constructor with custom parameters
- Use a Game Instance variable as the sole communication channel
Correct answer: Expose public variables on the widget and set them before or just after creation
You expose public variables on the Widget Blueprint, then set them on the returned object reference immediately after 'Create Widget' before calling 'Add to Viewport'.
Question 4: Which blend mode should a UMG widget's render transform use to correctly composite semi-transparent UI elements over the game world?
- Opaque
- Masked
- Translucent (Correct answer)
- Additive
Correct answer: Translucent
Translucent blend mode allows the widget renderer to composite alpha-blended pixels correctly over the underlying scene.
Question 5: In Widget Blueprints, what does setting a Size Box's 'Override Width' to a specific value achieve?
- It scales the widget proportionally with the viewport
- It forces the child widget to render at exactly that pixel width regardless of content (Correct answer)
- It sets the maximum allowed width before content wraps
- It defines the anchor offset for horizontal positioning
Correct answer: It forces the child widget to render at exactly that pixel width regardless of content
A Size Box with 'Override Width' enabled constrains its single child to exactly the specified pixel width, overriding auto-size behavior.
Question 6: Which Blueprint node retrieves the size of the player's viewport in pixels, useful for scaling UI elements?
- Get Screen Size
- Get Viewport Size (Correct answer)
- Get Display Resolution
- Get Render Target Size
Correct answer: Get Viewport Size
'Get Viewport Size' returns the current width and height of the game viewport as integers, allowing resolution-aware UI calculations.
Question 7: What is the purpose of the 'Slot' object returned when you add a child widget to a panel in Blueprint?
- It is a reference to the child widget cast to its correct class
- It holds layout properties (padding, alignment, size) specific to that parent panel type (Correct answer)
- It controls the render order z-index globally across all panels
- It stores the widget's animation state machine
Correct answer: It holds layout properties (padding, alignment, size) specific to that parent panel type
A Slot wraps the child-parent relationship and exposes panel-specific layout data like padding and fill size that vary by panel type.
Which UMG panel widget automatically arranges its children in a grid with a configurable number of columns?