save_prefab
Given an entity ID, reports the owning prefab path and explains that live edits cannot be saved back to the .prefab file; use create_prefab_from_entity to write a prefab to disk.
Instructions
Report where a prefab instance came from.
Propagating live entity edits back to a .prefab file is not reachable
from the editor's Python API: PrefabPublicRequestBus reflects no
save event, and the only serialiser, SaveTemplateToString, is keyed
by template id with nothing exposed to map an entity to one. This
returns the owning prefab path and says so, rather than reporting a
success that never happened. To get a prefab onto disk, use
create_prefab_from_entity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |