Unreal Engine Blueprints Variables and Data Types 3 — Questions and Answers
Question 1: In Blueprints, which variable category setting groups variables together in the Details panel?
- Category (Correct answer)
- Group
- Tag
- Namespace
Correct answer: Category
Setting the Category field on a variable organizes it under a named group in the Details panel for easier access.
Question 2: What type of variable stores an array of key-value pairs in Blueprints?
- Map (Correct answer)
- Set
- Array
- Struct
Correct answer: Map
A Map variable stores key-value pairs, allowing lookup of values by a unique key.
Question 3: Which Blueprint variable type would be most appropriate to store a world-space position?
- Vector (Correct answer)
- Rotator
- Transform
- Float
Correct answer: Vector
A Vector stores X, Y, and Z components, making it ideal for representing positions in 3D space.
Question 4: What does the 'Transient' variable flag do in Blueprints?
- Excludes the variable from serialization so it is not saved (Correct answer)
- Marks the variable as read-only at runtime
- Replicates the variable only transiently during a session
- Makes the variable visible only in the editor
Correct answer: Excludes the variable from serialization so it is not saved
Transient variables are excluded from serialization, meaning their values are not saved to disk or included in save games.
Question 5: In Blueprints, how do you convert an Integer to a Float?
- Use the 'To Float (Integer)' conversion node
- Cast the Integer using a Cast node
- Drag the Integer pin to a Float pin and confirm automatic conversion (Correct answer)
- Use the 'Make Float' node with an Integer input
Correct answer: Drag the Integer pin to a Float pin and confirm automatic conversion
Dragging an Integer output pin to a Float input pin in the Blueprint graph automatically inserts a conversion node.
Question 6: What is a 'Set' variable container in Blueprints best used for?
- Storing a collection of unique values with no duplicates (Correct answer)
- Storing ordered key-value pairs
- Storing values that must be accessed by index
- Storing a fixed-size group of named properties
Correct answer: Storing a collection of unique values with no duplicates
A Set stores unique values only, automatically preventing duplicate entries in the collection.
Question 7: Which variable replication setting ensures a variable's value is pushed to all clients AND calls a RepNotify function when it changes?
- RepNotify (Correct answer)
- Replicated
- None
- Push-Based
Correct answer: RepNotify
RepNotify replication replicates the variable to clients and automatically calls an OnRep_ function when the value changes on clients.
In Blueprints, which variable category setting groups variables together in the Details panel?