• Home  / 
  • Unity3D
  •  /  Replace GameObjects or Prefabs with another Prefab

Replace GameObjects or Prefabs with another Prefab

Do you have a bunch of gameobjects in your scene that you want to replace with a prefab?  Maybe you’ve been working with a placeholder object while you wait for the art & prefab to be ready?  If so, this simple editor script makes it easy.  Add this script to your Unity3D project in an Editor folder and you can quickly swap out your gameobjects with any prefab with the click of a button.

Note: I’m not sure what the original source for this script was, but I believe it was an adapted / inspired version from the scripts found on the Unity forums.  Definitely want to give credit to the forum posters here: https://forum.unity3d.com/threads/replace-game-object-with-prefab.24311/

  • Bruno Costa

    This is an amazing tool for replacing placeholders !!! Thank you very much for sharing