- Home /
My script says object is not colliding with the tag! But it is!
var col:Collider;
function Update(){
if(col.gameObject.tag=="tag super duper")
{
print("hi");
}
}
Comment
Answer by Dreamora · Jan 03, 2012 at 10:47 PM
Can you please show the whole code? Potentially you are not using the right collider (namely the one from OnCollisionEnter) but one that you manually assigned.
also can you provide the full name of the tag (I doubt its something with spaces)
Your answer
Follow this Question
Related Questions
A limit to the number of tags? 2 Answers
Collision Issue 1 Answer
Collision flag entering a tagged object's collider 2 Answers