DEXSOFT Editor Tools: Group Selected

DEXSOFT

(0)
FREE
Publisher DEXSOFT
File size 463.33kB
Number of files 2
Latest version 1
Latest release date 2021-03-31 08:49:13
First release date 2021-03-31 08:49:13
Supported Unity versions 2018.4.2 or higher
Very useful little script from our DEXSOFT Editor Tools series.
When you create your levels, you should always take care that objects on scene are well organised and arranged in a manner that you can easily find and replace elements. For example, if you add windows or some elements to your building you want them all to be grouped on that same building.
Using Unity editor it takes a lot of clicks to achieve that. You need to create new, empty GameObject, change its name (f.e. Building1), select objects which you want to place inside and then drag them onto just created empty object.
With Group Selected tool you can do that with one command. Select game objects holding CTRL key and choose one of two available commands from Tools-Group Selected menu. First one, Pivot from first selected (or to press Ctrl+G shortcut) will group selected object, take name from first selected object and preserve pivot from that object.
This option is ideal for creating new prefabs, just select all prefab elements, group them with this pivot option (Ctrl+G) and simply drag group in Prefabs folder. Done!
Second, Pivot zeroed out (SHIFT+G) will do the same, but pivot of the group will be placed in 0.0.0 point (origin).
So, selecting order is important if you want to take pivot from first selected object. In our example it is logical to select Building first and then windows and doors. Group will get name from the Building object and pivot will be chosen from those two options (Ctrl+G), from first object or in the origin (Shift+G).
Installation.
Download from Unity AssetStore or make new Editor folder inside Assets folder and copy script into it.

Usage.
Select desired objects holding Ctrl key in desired order in scene hierarchy and press Ctrl+G shortcut (Pivot from first selected), or Shift+G (Pivot zeroed out from Tools-Group Selected).

If we caught your attention, you should check out the rest of our super handy DEXSOFT Editor Tools!
AUTO-MAT Editor Tool

Top Publisher Assets