Answers for "unity comparetag"

C#
2

unity comparetag

if (yourObject.gameObject.CompareTag ("Player"))
{
	Debug.Log(yourObject.name + "has the tag 'Player' !");
}
Posted by: Guest on May-08-2021

C# Answers by Framework

Browse Popular Code Answers by Language