I have a prefab which is Instantiated into a parent object in the scene. What I would like to do is on an action - either touch or animation end - I would like the Instantiated object to be destroyed.
In the scene, many of the same Instantiated objects appear, so I was wondering if it can delete all with a reference to the main object.
Is this possible? I can't find a simple way to do this. I am not a coder, but have mainly used behaviours to do the work for me.
Many thanks in advance...