How can I change the root game object of a prefab in the editor?

I have a prefab containing a gameobject with a child. Now I need to make a gameobject as the root and make it the parent of the current root. How do I do that?

I already tried much, although I didn’t find anything. I even changed the prefab files with a text editor, unity crashed every time though :smiley:

How do I do that in the editor?

I know it’s the question asked long time ago, but I hope this helps:

There doesn’t seem to be any built-in approach to it as of now. You can follow these steps in order to get around it:

  1. Create new GameObject, make it child of prefab root.
  2. Copy all components you want to copy from old root to this new GameObject.
  3. Move all chidren from old root to this new GameObject.
  4. Done! Your new GameObject now have the same functionality your old root had, and you can use root in any way you want.