add_spawn_actor_from_class_node
Add a SpawnActorFromClass node to a Blueprint to instantiate actors at runtime. Specify the actor class and spawn transform to create enemies, projectiles, or effects.
Instructions
Add a SpawnActorFromClass node to instantiate an Actor at runtime.
From Ch. 3 and Ch. 10: Core node for spawning Blueprints at runtime. Used to spawn enemies, projectiles, pickups, particles, effects.
Takes a Class input and a SpawnTransform (Location, Rotation, Scale), returns a reference to the spawned Actor.
Args: blueprint_name: Blueprint to add the node to actor_class: Default Actor class to spawn (can be set via pin) node_position: [X, Y] graph position
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: add_spawn_actor_from_class_node(blueprint_name="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor_class | No | ||
| node_position | No | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |