Unable to find the tag of an instantiated prefab

Arturo 1 year ago 0

Hello everyone, 

i'm trying to make a prefab(made by 4 objects) appear and then when colliding with my player i want one of that 4 objects to disappear.

Before creating the process to instantiate the prefab, i was able to achieve that result.

Now i created an empty object in the hierarchy in which i manage the prefab start spawning...

....then, i have another empty object in which i manage the collisions

One of the 4 objects that compose the prefab has the tag "verde" in it, but now it gives back a null even if the prefab is instantiated inside a scene variable and so it can't go to the next event which is the "on trigger Enter"

Any suggestion?

Thank you

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):