Unreal Engine Blueprint Visual Scripting 3 — Questions and Answers
Question 1: What is a Blueprint Interface used for in Unreal Engine?
- Storing shared variables across multiple Blueprints
- Defining a contract of functions that multiple unrelated Blueprints can implement (Correct answer)
- Streaming level assets on demand
- Creating reusable UI widget templates
Correct answer: Defining a contract of functions that multiple unrelated Blueprints can implement
Blueprint Interfaces define function signatures that any Blueprint can implement, enabling polymorphic messaging without direct class references.
Question 2: Which node would you use to iterate over every element in a Blueprint array?
- For Each Loop (Correct answer)
- While Loop
- Sequence
- Do N
Correct answer: For Each Loop
The 'For Each Loop' node automatically iterates through each element of an array, providing the current element and index on each iteration.
Question 3: What happens when you promote a Blueprint local variable to an instance variable?
- The variable becomes accessible only within the current function
- The variable is shared across all instances of the Blueprint class
- The variable becomes accessible on each individual actor instance and persists across function calls (Correct answer)
- The variable is automatically replicated to all clients
Correct answer: The variable becomes accessible on each individual actor instance and persists across function calls
Instance variables are owned by each actor instance, retain their values between function calls, and can be exposed to the Details panel.
Question 4: What does enabling 'Replicate' on a Blueprint variable do?
- Saves the variable to disk automatically
- Synchronizes the variable's value from the server to all connected clients (Correct answer)
- Duplicates the variable into a sister Blueprint
- Makes the variable editable in the Construction Script
Correct answer: Synchronizes the variable's value from the server to all connected clients
Enabling replication on a variable ensures the server's value is automatically pushed to all clients whenever it changes.
Question 5: In Blueprints, what is the difference between a 'Pure' function and a regular function?
- Pure functions run faster because they skip the event queue
- Pure functions have no execution pins and always return the same output for the same input without side effects (Correct answer)
- Pure functions can only be created in C++
- Pure functions automatically cache their result every frame
Correct answer: Pure functions have no execution pins and always return the same output for the same input without side effects
Pure functions lack execution pins and are designed to be side-effect-free, making them safe to call multiple times without altering game state.
Question 6: Which component method in Blueprint allows you to attach one component to another at a specific socket?
- Set Relative Location
- Attach Component To Component (Correct answer)
- Set World Transform
- Register Component
Correct answer: Attach Component To Component
'Attach Component To Component' parents one component to another, optionally snapping to a named socket on the parent's mesh.
Question 7: What does the 'Do Once' node do in a Blueprint event graph?
- Executes the connected logic only the first time it is triggered, then blocks further executions until reset (Correct answer)
- Runs the next node in the sequence exactly once per frame
- Limits a loop to a single iteration
- Executes two branches simultaneously
Correct answer: Executes the connected logic only the first time it is triggered, then blocks further executions until reset
The Do Once node allows its output execution to fire only once; a Reset input re-arms it so it can fire again.
What is a Blueprint Interface used for in Unreal Engine?