How do you make a clone have the same tag as its original?
I would like to know how do I make sure that every time I instantiate that clone has the exact same tag as its original. In my case I make making obstacles for an infinite runner and have named the original obstacle that is going to be cloned with the tag "WallDeath" . Now this wall death needs to be for every clone as wall death makes the player die once it collides with the obstacles. Basically how do I make a clone with the same tag as the original. Thanks in advance and if you need my already made code for more information just ask.
The clone should already have the original's tag when instantiating. Otherwise, just do clone.tag = original.tag.
if you're instansiating a prefab or clone it should have the same tag as the original, did you try instansiating something and it for some reason didn't have the same tag as the original?