This article has participated in the activity of “New person creation Ceremony”, and started the road of digging gold creation together.

As shown, after the object is dragged as the default body, the properties panel has three actions for Prefab:

  • Select: Locate the Prefab corresponding to the resource panel.
  • Revert: Undo any changes made to the current GameObject and Revert to Prefab;
  • Apply: Apply the changes made to the current GameObject to Prefab, and all the GameObjects associated with the Prefab will change.

The normal Prefab name is blue

If you remove Prefab from the resource panel, this GameObject loses its associated object and its name becomes dark red

How do I unassociate GameObject with Prefab? It’s actually quite simple:

  1. Select the object you want to disassociate
  2. There is a Break Prefab Instance option under the GameObject menu bar. Click

This side cancels the association of the object to the preset body, the name is normal black, the preset body changes, will not affect the object.

It is important to note, however, that after unassociation, there is also a Prefab action option in the properties pane, so all three actions are still in effect. If you want to disassociate Prefab completely and not have anything to do with the original Prefab, you can simply delete Prefab from the resource panel. Removing Prefab will have no effect on disassociating This GameObject.

If you only want to cancel the association between some objects and the preset body, and keep the association between the rest of the objects, then you cannot delete the preset body, can you cancel the association completely? Make a copy of the Prefab, use the first Prefab for the object that needs to be associated, and use another Prefab for the object that needs to be unassociated. After dragging and dropping both to the scene, you will need to unassociate the Break Prefab Instance and delete the second Prefab