How to disable renderer on list of objects?

Hi,

I have a scene composed of many objects that I’ve brought into unity4 via .fbx. I am using the timeline editor uSequencer to create various animations of my scene.

I need to be able to show/hide various components of my scene at different times. I understand that I can disable the renderer on each of the objects that I wish to hide, but it becomes very tedious to select a lot of individual meshes.

The case of hiding the parent and the children going with it is not what I’m looking for. In fact, I’d much rather ONLY the specified objects hide/show. Is there a way I can make a list of selected objects or object names and then disable the renderer for all objects in the list?

Basically, I’m looking for the ability to pick and choose out of a large list of items (regardless of parenting hierarchy) which components of the scene I wish to have show/hide at various points to allow me to set up different scenarios.

Thanks for any help…my programming knowledge is a bit on the low side.

Andrew

Have you thought of using tags ? Then you can use GameObject.FindWithTag to load an array or list.

I had looked into using tags however I believe there is a limitation of only being able to apply a single tag to an object.

I’ve seen some workarounds that include empty game objects in objects requiring more than one tag and putting a different tag on each game object, but for what I’m looking to do, that’s far too much setup. I need the ability to at time X, quickly show object list A and then at time Y, show list B and hide list C…but also require any object to have the ability to be included in any list at any time. You can see tags quickly become quite tedious.

Seems like it should be a simple thing - basically looking to trigger something the same as “Show Selected” or “Hide Selected” in 3ds max…but I can’t find any reference of anyone having done it before.

A.