Answers for "how to check the tag of a collider in unity"

C#
2

how to check the tag of a collider in unity

void OnTriggerEnter(Collider collision)
{
	if(collision.gameObject.tag == "[Tag]")
    {
 		//Do Something...
	}
}
Posted by: Guest on August-17-2020

Code answers related to "how to check the tag of a collider in unity"

C# Answers by Framework

Browse Popular Code Answers by Language