How can I "group" objects inside the "hierarc

Hello,

now I’m creating my game, and I have a lot of objects inside the “arena”. So I wanted a way to “group” instanced objects together (grouping inside a folder), just to avoid to see a LONG list of objects in the hierarchy. I was looking for something similar to “Folders” in the “Project” view, but I cannot find any solution. I could use an empty GameObject like a container, but I think this is not a good idea (in fact I need to group instanced objects only for my “eyes” and not for the game engine).

Can you give me some hints, suggestions how to proceed?

Thank you!

Hi,

I see no problem with creating an empty GameObject to parent your other GOs, so long you pay attention to it while finding GOs through script.

If you want to “group for the engine” you can use tags instead.

I am doing it that way, am I wrong ?


oxl

I didn’t use GO because I think they are an “overload” not useful for the engine (grouping objects is an advantage for me and not for the engine). Instead I think it is a great idea using tags for logical grouping (I didn’t think to tags for a such scope).

EDIT: the problem for tags is I cannot “filter” them (or I’m not able to do that :slight_smile:

In fact I cannot find a way to “ask” to unity to show only a specific tag :frowning:

Furthermore, it could be very useful if I could assign more than one tag to a model :slight_smile:

Thank you!

You can also use layers for that purpose…

Yes, I think it could be very,very useful if we could assign more than one tag to an object. :slight_smile:

It’s a perfectly good idea; that’s what UT members themselves have suggested when this has come up before.

–Eric

Thank you, I will do it.
I think I could even “disable” GameObject container, and I will enable “children” objects :wink:

You probably don’t even need to do this - a GameObject doesn’t really have any serious performance overhead when it doesn’t have a script or other components attached.