- Home /
UnityException: Tag: - is not defined! (OnTrggerEnter)
I'm new here and I'm sure this has been asked at least once, but how to I "define" something? here is my code:
void OnTriggerEnter(Collider otherCollider){
if (collider.gameObject.CompareTag("Projectile")){
Destroy(this.gameObject);
Comment
Your answer
Follow this Question
Related Questions
Cannot implicitly convert type `UnityEngine.GameObject[]' to `UnityEngine.GameObject' 1 Answer
Having problems when using triggers 1 Answer
character lagging in air when jumped 0 Answers
Error in script 1 Answer
Ref modifier 1 Answer