Answers for "find object in scene unity tag"

C#
14

unity find objects with tag

//Find a single game object
GameObject.FindWithTag("TagName");

//Find multiple game objects from tag 
GameObject.FindGameObjectsWithTag("TagName");
Posted by: Guest on October-13-2020
1

how to find the tag of an objecdt in unity

if(FindGameObjectsWithTag(Player){
  Debug.Log("FoundPlayer")
  }
Posted by: Guest on September-21-2020

C# Answers by Framework

Browse Popular Code Answers by Language