Shortcut to create empty parent with transform of original object?

I would think this would be a common enough problem that there would be a shortcut.

Suppose you place a GameObject in your scene and get it adjusted just the way you want it. Then you realize that you are going to add some other objects and you would like for them all to be under one empty parent. In particular you would like to align them according to the local coordinates of this parent.

Having placed the first object, is it possible to create an empty parent object with its transform taken from the first?

I’ve been laboriously copying over the position, rotation and scale values by hand and I feel certain that there must be a better way.

Good day.

there is no shortcut for this (or at least i never saw it or listen/read about it)

The best way is to create an empty object child of the original object, set it transfom (Local position) to 0,0,0 . Then by inspector icheracty, move it outside (unparent it) the original object and make the original object child of the emptyobject.

So you will finnaly have a emptyObject with the coorect world position and the originalobject as a child with coords 0,0,0

Bye!

I came here from Google and while reading this I came up with a solution that might help anyone else in the future:

After adding the empty parent:

  1. select your child object
  2. Right click on the ‘position’ label in the Inspector and choose Copy.
  3. Right click again on ‘position’ label and choose Revert
  4. Select your parent object
  5. Right click on the position label in the inspector and choose Paste.

Voila! The position has now been applied from the child onto the parent. It may not be the most desired outcome but beats having to reposition the parent manually.

There is a shortcut to “Create empty parent” now. (in Unity 2021)