Destroying a cloned prefab gameobject ?

I have a few prefab cubes instantiated as gameObjects. The problem is that they are all clones and therefore all named the same. How would I go about destroying the prefab if it has the same name as the others? If I know the exact position of the prefab, can I identify/destroy it by position? It’s open season on cubes…

Well you can name it right after its instantiated to a unique name. Also you can add it to an array so that it can be dealt with.

you can add a script to prefab where on particular condition destroy that prefab.

Ah excellent thank you! I had no idea I could add game objects to an array, i’ve been referencing them from an index in the array.