.. _stdlib_prefab_viewer: ================ Prefab Editor ================ ++++++++++++++++++++ Prefab View ++++++++++++++++++++ .. line-block:: Double-click the prefab file in the project window to open it in the prefab editor. ++++++++++++++++++++ Prefab Edit ++++++++++++++++++++ .. image:: prefab_editing.jpg :width: 600 :alt: prefab_editing .. line-block:: You can edit the prefab in the same way as a scene. Add new nodes, change the hierarchy, attach new components, etc. All changes will be applied to all instances of this prefab in the scene. ++++++++++++++++++++ Prefab Navigation ++++++++++++++++++++ .. image:: prefab_navigation.jpg :width: 600 :alt: prefab_navigation .. line-block:: You can find navigation buttons in the top left corner of the prefab editor. Press the ``Back to Scene`` button to return to the game scene. Press the ``Save`` button to save manually. ++++++++++++++++++++++++++++++ Saving Modified Prefabs ++++++++++++++++++++++++++++++ .. image:: prefab_saving_check.jpg :width: 600 :alt: prefab_saving_check .. line-block:: If you try to exit the prefab editor while the active prefab has unsaved changes, you will see a dialog window. You can save changes, discard changes, or cancel exiting the prefab editor. .. warning:: This dialog window does not appear when exiting the application! Be careful with changes in prefabs! +++++++++++++++ Prefab Spawning +++++++++++++++ .. image:: prefab_spawn_result.jpg :width: 600 :alt: prefab_spawn_result .. line-block:: Prefab spawning works the same as model prefab instantiation. You can drag and drop the prefab file into the scene, or right-click the prefab file in the project window and select ``Instantiate`` from the context menu.