Unreal Engine Blueprints Actor and Component Interaction 2 — Questions and Answers
Question 1: Which Blueprint node is used to get a reference to another actor that overlaps a Sphere Collision component?
- Get Overlapping Actors (Correct answer)
- Get All Actors of Class
- Line Trace By Channel
- Get Actor Location
Correct answer: Get Overlapping Actors
Get Overlapping Actors returns an array of all actors currently overlapping a specified primitive component such as a Sphere Collision.
Question 2: What is the purpose of the 'Attach Actor to Component' node in Blueprints?
- Parents an actor to a specific component of another actor (Correct answer)
- Copies components from one actor to another
- Spawns a new actor at a component's location
- Destroys the component after attachment
Correct answer: Parents an actor to a specific component of another actor
Attach Actor to Component parents one actor to a named component on another actor, making the attached actor follow that component's transform.
Question 3: When using 'Cast To' on an actor reference, what happens if the cast fails?
- Execution continues through the 'Cast Failed' pin (Correct answer)
- The game crashes immediately
- The original reference is returned unchanged
- A null reference exception is thrown automatically
Correct answer: Execution continues through the 'Cast Failed' pin
A failed cast routes execution through the Cast Failed output pin, allowing Blueprint logic to handle the failure gracefully.
Question 4: Which collision response setting allows an actor to detect overlaps without blocking physical movement?
- Overlap (Correct answer)
- Block
- Ignore
- Query Only
Correct answer: Overlap
Setting a collision channel to Overlap triggers overlap events without preventing the objects from passing through each other.
Question 5: In a Blueprint, how do you call a function defined on a child class from a parent class reference?
- Cast the reference to the child class first, then call the function (Correct answer)
- Call the function directly on the parent reference
- Use 'Get All Actors of Class' to find the child
- Override the function in the parent class
Correct answer: Cast the reference to the child class first, then call the function
You must cast the parent class reference to the specific child class before accessing child-specific functions or variables.
Question 6: What does the 'Get Component by Class' node return when multiple components of that class exist on an actor?
- The first found component (Correct answer)
- All components of that class in an array
- The last added component
- A null reference
Correct answer: The first found component
Get Component by Class returns only the first component of the specified class it finds, not all of them.
Question 7: Which node is best suited for finding all actors of a specific class within a radius at runtime?
- Get All Actors of Class combined with a distance check
- Sphere Overlap Actors (Correct answer)
- Line Trace By Channel
- Get Overlapping Actors
Correct answer: Sphere Overlap Actors
Sphere Overlap Actors performs a sphere-shaped overlap query at a specified location and radius, returning all actors of a given class within that area.
Which Blueprint node is used to get a reference to another actor that overlaps a Sphere Collision component?