Is It Possible To Give Unique Tags to Items In An Array Built From a Prefab?

I have a prefab. That prefab is used to create an array of objects. I’m able to tag the prefab with my tag name, “Brick,” but I’m unsure how to uniquely tag each of the elements in the array (that is built during run-time). I have a for loop that instantiates a new brick, through a reference to the prefab. Any help would be greatly appreciated.

Tags are defined at design time. The list of available tags is static once you’ve built the game. There are no ways to create new tags at runtime (well technically you can at editor runtime, but not at true runtime… and such implementations will fail when you do the actual build of your game).

Thanks.

Would there be any way to identify those objects in the array? I have an array of objects with box colliders and I need to know which one is hit during a collision.

usually you have a script which handles one of the ‘OnCollision’ messages:

You know which one was hit, because it’s ‘this’… it’s the GameObject on which the script is attached.

You know, that makes perfect sense. I’m fairly new to game design, so trying to understand the calls and interaction between objects is a bit confusing, but that makes sense. My objects in the array are now being deactivated by using a script attached to them. Thanks