remove_smart_object_slot
Remove a slot from a USmartObjectDefinition asset, including its behaviors, tags, and annotations; later slots shift down and the asset is saved.
Instructions
Remove the slot at slot_index from a USmartObjectDefinition asset, together with its behaviors, tags and annotations; later slots shift down one index, so re-read indices with get_smart_object_slots_detail. Saves the asset; a failed save returns an error with the removal kept in memory. An invalid slot_index is an error. Undoable (one editor transaction). To turn a slot off while keeping indices stable use set_smart_object_slot_enabled; add_smart_object_slot appends one.
Returns: { definition_path: string, slot_index: int, slot_count: int, removed: bool, saved: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot_index | No | Index of the slot to remove | |
| definition_path | Yes | Path to the USmartObjectDefinition asset |