fbpx
Editing prefabs2019-03-13T07:00:44+00:00

Guides

Be an expert with our advanced guides and build beautiful high-quality games.
Get a head start and receive knowledge directly to your inbox:

Expert Workflows

“I am constantly updating and extending this guide. Let me know in the comments what you would like to know about!”
– Max

Editing prefabs

Written by Max Plooi
Creator of Nested Prefabs for Unity

Prefab Mode

To edit a prefab, you must enter ‘prefab mode’. This will open an empty scene with only the prefab in it where you can modify its values. Enter prefab mode by double-clicking a prefab asset, clicking the arrow on the right side of the Hierarchy Window, or clicking the ‘Open’ button in the Inspector when a prefab is selected.

In older versions of Unity there is no prefab mode, and you edit a prefab directly in the hierarchy. After making changes, click ‘Apply’ in the inspector to save the changes and update other prefabs throughout your game.

Saving Changes

Any changes made to the prefab while in prefab mode are automatically saved to the prefab asset. And those changes will also update in all instances of that prefab asset in the project. Including other prefabs that include this modified prefab as a nested prefab.

Exit Prefab Mode

Exit Prefab Mode by clicking on the ‘Scenes’ button in the Breadcrumb Bar. You can also use this Breadcrumb Bar to go to the parent prefab if you are editing a nested prefab. Alternatively, click the back arrow at the top of the Hierarchy Window to exit Prefab Mode.

Nesting Prefabs

Now that you know how to create and edit prefabs, it is time to learn how to Nest Prefabs in the next article. Or take another look at how to Create a Prefab in the previous article.

Get a head start

Become an expert by reading more of our advanced guides and build beautiful high-quality games. Get a head start and receive knowledge directly to your inbox:

Your thoughts

Let us know what you think. If you have any feedback, ideas, or just something awesome to say. We would love to start a conversation with you: