Unreal Engine Blueprints Variables and Data Types 2 — Questions and Answers
Question 1: Which variable type in Blueprints stores a reference to an Actor placed in the level?
- Object Reference (Correct answer)
- Soft Object Reference
- Asset ID
- Class Reference
Correct answer: Object Reference
Object Reference stores a hard reference to a specific Actor or object instance in the level.
Question 2: What is the difference between a 'Float' and a 'Double' variable in Unreal Engine 5 Blueprints?
- Double has 64-bit precision while Float has 32-bit precision (Correct answer)
- Float supports negative numbers while Double does not
- Double is only used for physics calculations
- There is no difference; they are interchangeable
Correct answer: Double has 64-bit precision while Float has 32-bit precision
Double uses 64-bit floating-point precision, offering greater accuracy than the 32-bit Float type.
Question 3: In Blueprints, what does setting a variable's 'Expose on Spawn' property do?
- Allows the variable to be set when spawning an Actor of that class (Correct answer)
- Makes the variable visible in the viewport
- Automatically initializes the variable on BeginPlay
- Enables the variable to be replicated over the network
Correct answer: Allows the variable to be set when spawning an Actor of that class
Expose on Spawn makes the variable available as a pin on the Spawn Actor node so it can be set at spawn time.
Question 4: What Blueprint variable type would you use to store a player's name?
- String (Correct answer)
- Text
- Name
- Integer
Correct answer: String
String is the standard type for storing arbitrary character sequences like player names in Blueprints.
Question 5: Which of the following correctly describes a 'Soft Class Reference' variable?
- It references a class without forcing it to load into memory immediately (Correct answer)
- It stores the class name as a plain string
- It is the same as a hard Class Reference
- It can only reference Blueprint classes, not C++ classes
Correct answer: It references a class without forcing it to load into memory immediately
Soft Class Reference stores a path to a class that is only loaded into memory when explicitly requested, supporting async loading.
Question 6: When would you use a 'Name' variable type instead of a 'String' in Blueprints?
- When referencing internal identifiers like socket names or bone names (Correct answer)
- When storing user-facing display text
- When the value needs to support Unicode characters
- When the value needs arithmetic operations
Correct answer: When referencing internal identifiers like socket names or bone names
Name is optimized for internal identifiers such as socket names, bone names, and gameplay tags, and is stored as a hash for fast comparison.
Question 7: What happens if you try to access an Object Reference variable that has not been set (is null)?
- The Blueprint will throw an 'Accessed None' warning and potentially crash (Correct answer)
- The node will silently skip execution
- The variable auto-initializes to a default object
- Blueprints prevent null access at compile time
Correct answer: The Blueprint will throw an 'Accessed None' warning and potentially crash
Accessing a null Object Reference causes an 'Accessed None' error at runtime, which can crash the game if unhandled.
Which variable type in Blueprints stores a reference to an Actor placed in the level?