add_smart_object_slot_behavior_definition
Attach a behavior definition class to a USmartObjectDefinition slot to make the smart object asset Validate()-valid when every slot or a default has a behavior.
Instructions
Attach a behavior definition (class resolved by name) to a slot of a USmartObjectDefinition. The class must derive from USmartObjectBehaviorDefinition (e.g. GameplayBehaviorSmartObjectBehaviorDefinition). A behavior on every slot (or a default) makes the definition Validate()-valid.
Returns: { definition_path: string, slot_index: int, behavior_class: string, behavior_count: int, saved: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot_index | No | Index of the slot to attach the behavior to | |
| behavior_class | Yes | Behavior class: short native name (e.g. "GameplayBehaviorSmartObjectBehaviorDefinition") or full /Script path | |
| definition_path | Yes | Path to the USmartObjectDefinition asset |