I have these prefab trackers drop from the player as he walks around. The enemy character is meant to stumble onto these trackers and eventually that will turn into him following the player’s footsteps in order. However for some reason the enemy’s trigger will not find the tagged prefabs.
They are tagged on the prefab in the assets folder. If I drag and drop the prefab onto the scene it will not find the tag for the prefab game object but say for example I change the players tag it will find that. I’m not sure what’s going on here.
Instantiate script
void poopPrefab() {
Transform footstepPrefab = Instantiate (footPrefab, currentPos, currentRot);
}
Tag finder script
void OnTriggerStay(Collider col)
{
if (col.tag == ("tracking")) {
Debug.Log ("a thing has happened");
}