set_spawn_actor_class
Set the actor class on a SpawnActorFromClass node in a Blueprint, handling UE 5.6 class pin object defaults correctly.
Instructions
Set the Class pin on an existing SpawnActorFromClass node.
Class pins use object defaults in UE 5.6, so use this helper after add_blueprint_spawn_actor_node instead of set_node_pin_value.
Args: blueprint_name: Asset name of the Blueprint. node_id: SpawnActor node GUID or node name. actor_class: Actor class name to assign, e.g. "BP_Projectile_C". graph_name: Graph containing the node. Default "EventGraph".
Returns: Dict with node_id and actor_class.
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#spawnactor-class-pins Example: set_spawn_actor_class( blueprint_name="/Game/MCP_Test/BP_Example", node_id="9C2E...", actor_class="BP_Projectile_C", )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | ||
| graph_name | No | EventGraph | |
| actor_class | Yes | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |