Game wont restart in the build, but works great in the editor..

UnityException: GameObject has undefined tag!
at (wrapper managed-to-native) UnityEngine.GameObject:get_tag ()
at UnityEngine.Component.get_tag () [0x00000] in :0
at PlayerCollision.OnCollisionEnter (UnityEngine.Collision collisionInfo) [0x00000] in :0

(Filename: Line: -1)

Seems like you put a tag to a GameObject and then deleted that tag? When does that happens?

1 Answer

1

For some reason, you are trying to acces a tag from a gameobject. But that Tag has been deleted, or is null …

I can not say why without more info. But i can also say i never seen this before…