Unitate găsi obiecte cu tag-ul

Exemple de cod

19
0

găsiți gameobject cu tag-ul

GameObject.FindWithTag("Enemy");
8
0

unitatea obține toate de tag-ul

GameObject[] arrayGo = GameObject.FindGameObjectsWithTag("myTag");
8
0

găsiți gameobject cu tag-ul

GameObject.FindGameObjectsWithTag("Enemy");
8
0

unitate găsi obiecte cu tag-ul

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

//Find multiple game objects from tag 
GameObject.FindGameObjectsWithTag("TagName");
7
0

cum de a găsi obiect de ag unity

yourObjects = GameObject.FindGameObjectsWithTag("Respawn");

//Youtube: https://www.youtube.com/channel/UCBDHOr2HKOuMiWUj-Pu-AGA
1
0

cum de a găsi eticheta unui objecdt în unitate

if(FindGameObjectsWithTag(Player){
  Debug.Log("FoundPlayer")
  }

În alte limbi

Această pagină este în alte limbi

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................