Skip to content

How to use ReplaceWithPrefab.cs


Original source of script unknown. Found by Jason Weimann

Video Source:

Associated webpage:


  1. Go to Tools at the top of Unity and click on Replace With Prefab, a new window will appear. step-one

  2. Select objects in a scene using the Hierarchy tab. step-two

  3. In the ReplaceWithPrefab window, select a prefab in the Prefab field. step-three

  4. Click the Replace button to replace selected objects with the prefab chosen in the Prefab field. step-four

Note: When you replace an object, the new .prefab will have all its variables (except for its transform values) reset to its parent.