add_is_valid_class_node
Adds an IsValidClass node to a Blueprint to check whether a class reference is valid before passing it to SpawnActorFromClass, returning True if the class is valid.
Instructions
Add an IsValidClass node to check if a class reference is valid.
From Ch. 13 (BP_RandomSpawner): Used to validate a Class Reference variable before passing it to SpawnActorFromClass. Returns True if the class is valid.
Args: blueprint_name: Blueprint to add the node to node_position: [X, Y] graph position
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: add_is_valid_class_node(blueprint_name="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_position | No | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |