Documentation

Unity Spark

Open Unity Spark

Unity Spark

Create and manage prefabs

Create a prefab from an object, update a prefab from one of its copies, and revert or unlink a prefab copy in Unity Spark.
Read time 1 minuteLast updated 3 hours ago

Create a prefab when you want to place the same object many times, such as an enemy or a collectible coin. After you place copies, you can save a copy's changes into the prefab, discard a copy's changes, or turn a copy into a regular object.
For how prefabs and their copies relate, refer to Introduction to objects and prefabs.

Create a prefab

To create a prefab:
  1. Create an object, and add any child objects and components you want it to have.
  2. Right-click the object in the Hierarchy window.
  3. Select Prefab > Create Prefab.
Unity Spark saves the prefab in a
Prefabs
folder in your Project window. The object in the scene becomes its first copy. Copies of a prefab, and the objects inside them, display their names in blue in the Hierarchy window.

Update or revert a prefab

To manage a prefab copy:
  1. Right-click the top row of the copy in the Hierarchy window.
  2. Select Prefab.
  3. Select one of the options in the following table.

Option

Description

Update PrefabSaves this copy's changes into the prefab, including any child objects you added.
Revert PrefabDiscards this copy's changes.
Break Prefab LinkTurns the copy into a regular object.
Select in ProjectShows the prefab in the Project window.
Update Prefab also updates the other copies of the prefab in all your scenes. A copy keeps any value that you changed on that copy, and keeps its own position and name. Copies you place afterward start from the updated prefab. To undo the update for the prefab and all its copies, undo once.

Additional resources