Unity needed cmd-g and ctrl-g

I’ve found my left hand hitting the trusty “make group” key combination in Unity more and more whenever I’m deeply focused on organizing and structuring scene objects and I’ve had it with disappointment. Create an empty game object, put it where I need it, plop children under said new empty game object is so yesterday when it comes to organizing in Unity now. Drop my new group maker into your unity projects and organization is a simple press of command-g (control-g on PC) away!

The object showing in your scene view with a transform gizmo attached when you hit command-g (control-g on PC) is where the pivot is set. This means if you are using command-click (control-click on PC) to select objects to group the first object you chose will end up being the pivot.



  1. March 4, 2012

    Thanks Bob!

  2. Daniele
    March 5, 2012

    Hey Bob,

    nice tool 🙂

    A quick tip: to undo the creation of a gameObject from an Editor script, you have to use:
    Undo.RegisterSceneUndo( “Undo description” );
    (prior to the creation of the gameObject)

    • March 5, 2012

      Thanks for the tip – I’ve implemented that and now we have full undo of groups.

  3. renman3000
    March 5, 2012

    Great tool Bob,
    Its like the iPad, did not know I needed it till now. Anyhow, how do you undo a group? Is there a keyboard function?

    • March 5, 2012

      Right now you can just undo like you normally would with anything else. I’m thinking through the possibility of an undo group implementation but I worry about automatically destroying the parent for fear of losing someone’s work on it (scripts, etc…). You could just manually drag things out of the parent and destroy the parent if need be but input is always nice if you have suggestions.

  4. March 5, 2012

    Awesome. Great little script dude. Thanks!

  5. March 11, 2012

    Excellent tool – organizing objects in the scene became more and more complicated as the projects got bigger for us. This will surely come in handy! Thanks! 🙂