prefab-create-instance.rst 1.0 KB

12345678910111213141516171819202122
  1. .. include:: ../_header.rst
  2. Creating a prefab instance
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. You can create a |PrefabInstance|_ by dropping a prefab_ file into the scene, dragging it from the |FilesView|_ or the |BlocksView|_.
  5. When the active editor is a |SceneEditor|_, the |BlocksView|_ shows the |AssetPackFile|_ items and the prefab_ files:
  6. .. image:: ../images/scene-editor-prefab-create-instance-04202020.webp
  7. :alt: Create prefab instance.
  8. You can open the prefab_ file of a |PrefabInstance|_ with the **Open Prefab** command. You can press the ``F`` key or execute the command in the context menu, in the **Prefab** sub-menu:
  9. .. image:: ../images/scene-editor-prefab-open-prefab-file-06082020.webp
  10. :alt: Open prefab file of instance.
  11. The |InspectorView|_ shows a section for each prefab (and prefab variant) of the selected objects. In the menu of the section, you can click the **Open Prefab** option:
  12. .. image:: ../images/scene-editor-prefab-open-prefab-file-from-inspector-20230627.webp
  13. :alt: Open prefab file by clicking on prefab name in the Inspector.