scene-get-nested-prefabs-instances
Retrieve all nested prefab instances from a prefab instance, enabling property updates or addition of objects to container-like prefabs.
Instructions
Get all the nested prefab instances of the given prefab instance. A prefab instance can have other prefab instances as children that are exposed as nested prefab instances. This tool returns all the nested prefab instances, not the direct children. You can use this tool to get the info of the nested prefab instances and perform operations like updating the nested prefabs or, in case they are containers-like objects, add objects to them. You cannot delete a nested prefab instance. A nested prefab instance also have a prefabId that points to an object inside the root prefab. You can modify a nested prefab instance just like any other prefab instance, you have to provide the id, the values of the properties, and update the unlock field. Each nested prefab instance contains its own data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The `id` of the prefab instance game object in the scene. | |
| sceneId | Yes | The `id` of the scene. The `id` is not the name of the scene, else a unique identifier is set in the scene data. You need to read the scene data to get the `id`. |