How do I undo "Center On Children"

I clicked "GameObject->Center On Children" to see what it did, and now the origin of my transform is no longer where I expect it to be. How do I get the center to be on the parent again?

You can look at the x,y,z location of the parent and manually enter those numbers into the game object transform that you want to "uncenter on children". That probably would have been a lot quicker than closing the scene and losing your work.

Hey, don't be too hard on yourself. I thought the overall approach was well thought out! Adding the objects one by one, putting the condition checking into its own method and using Physics.SphereCast, those were very good choices, in my opinion! It just needed a little tuning. Did you delete it?

1 Answer

1

Actually this could be a bug, because I guess it's impossible since the normal `undo` does nothing for this action.

My workaround was to just close Unity without saving, but I could have lost a lot of work if I hadn't saved just before centering on children.

You were lucky that you didn't save it :) but save more often.. you should have missed it.. :)