Unreal Engine Blueprints Unreal Engine Blueprint Ultimate 4 — Questions and Answers
Question 1: What is the purpose of 'Blueprint Macros' compared to regular Blueprint functions?
- Macros compile faster than functions
- Macros can have multiple execution input and output pins, unlike functions which have one (Correct answer)
- Macros are only available in the Level Blueprint
- Macros automatically replicate across the network
Correct answer: Macros can have multiple execution input and output pins, unlike functions which have one
Blueprint Macros support multiple execution inputs and outputs and are expanded inline at compile time, giving more flexibility in control flow than standard functions.
Question 2: In Blueprint replication, what does setting a variable's replication to 'RepNotify' do?
- It replicates the variable and calls a custom 'OnRep_' function on clients when the value changes (Correct answer)
- It notifies the server whenever a client modifies the variable
- It logs every variable change to the output log
- It marks the variable as read-only on clients
Correct answer: It replicates the variable and calls a custom 'OnRep_' function on clients when the value changes
RepNotify replicates the variable from server to clients and automatically calls the generated 'OnRep_VariableName' function on clients whenever the replicated value changes.
Question 3: Which Blueprint node is used to delay execution for a specified number of seconds without blocking the game thread?
- Sleep
- Wait
- Delay (Correct answer)
- Pause Execution
Correct answer: Delay
The 'Delay' node pauses the execution flow for a given duration using Unreal's timer system, without stalling the main game thread.
Question 4: What is the correct way to spawn an actor of a specific Blueprint class at runtime?
- Create Actor
- Spawn Actor from Class (Correct answer)
- Instantiate Blueprint
- New Actor Instance
Correct answer: Spawn Actor from Class
'Spawn Actor from Class' creates a new instance of the specified actor class in the world at the given spawn transform.
Question 5: In Blueprint, what does the 'Get All Actors of Class' node return?
- A single reference to the first actor of the given class found in the scene
- An array of all currently active actors of the specified class in the world (Correct answer)
- A count of how many actors of that class exist
- All actors including destroyed ones from that class
Correct answer: An array of all currently active actors of the specified class in the world
'Get All Actors of Class' iterates the world and returns an array containing references to every living actor of the specified class.
Question 6: What is the effect of enabling 'Call in Editor' on a Blueprint function?
- The function executes every time the Blueprint is compiled
- The function can be called from the editor's Details panel without entering Play mode (Correct answer)
- The function is only available inside the editor and stripped from shipping builds
- The function automatically runs when the actor is placed in the level
Correct answer: The function can be called from the editor's Details panel without entering Play mode
'Call in Editor' exposes the function as a button in the Details panel, allowing designers to trigger it in the editor without starting Play mode.
Question 7: Which component would you add to a Blueprint actor to enable physics simulation such as gravity and collision response?
- Static Mesh Component with 'Simulate Physics' enabled (Correct answer)
- Physics Actor Component
- Gravity Component
- Rigid Body Constraint
Correct answer: Static Mesh Component with 'Simulate Physics' enabled
Enabling 'Simulate Physics' on a Static Mesh Component activates the physics engine for that component, applying gravity, forces, and collision responses.
What is the purpose of 'Blueprint Macros' compared to regular Blueprint functions?