Skip to main content
Bumped by Community user
edited title
Link
DMGregory
  • 140.8k
  • 23
  • 257
  • 401

Finding GameObject with Tag, excluding this object and its children

UnityScript isn't a thing anymore - read the tag descriptions.
Source Link
DMGregory
  • 140.8k
  • 23
  • 257
  • 401

I am new to unity butUnity. I'm trying to create a combat game so i.

I want to acessaccess different game objects by tag through the findgameobjectwithtagFindGameObjectWithTag method, but iI want the script to ignore the gameobjectgame object and the children of the gameobjectgame object that contains the script and only reference non children of the gameobjectgame object with the exact tag, can anyone please help.

I am new to unity but I'm trying to create a combat game so i want to acess different game objects by tag through the findgameobjectwithtag, but i want the script to ignore the gameobject and the children of the gameobject that contains the script and only reference non children of the gameobject with the exact tag, can anyone please help

I am new to Unity. I'm trying to create a combat game.

I want to access different game objects by tag through the FindGameObjectWithTag method, but I want the script to ignore the game object and the children of the game object that contains the script and only reference non children of the game object with the exact tag.

Source Link

Finding GameObject with Tag

I am new to unity but I'm trying to create a combat game so i want to acess different game objects by tag through the findgameobjectwithtag, but i want the script to ignore the gameobject and the children of the gameobject that contains the script and only reference non children of the gameobject with the exact tag, can anyone please help