set_smart_object_slot_enabled
Enable or disable a smart object slot in a USmartObjectDefinition asset, then save the authored flag so built objects start with that slot state.
Instructions
Set the authored enabled flag (bEnabled) of the slot at slot_index in a USmartObjectDefinition asset, then save it: the initial state that smart objects built from this definition start with. enabled defaults to true when omitted. An invalid slot_index is an error, and a failed save returns an error with the change kept in memory. Undoable (one editor transaction). Use remove_smart_object_slot to delete the slot instead, and get_smart_object_slots_detail to read slots back.
Returns: { definition_path: string, slot_index: int, enabled: bool, saved: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | Whether the slot is enabled | |
| slot_index | No | Index of the slot to edit | |
| definition_path | Yes | Path to the USmartObjectDefinition asset |