Home > other >  According to the tag search under a GameObject child objects?
According to the tag search under a GameObject child objects?

Time:09-22

A GameObject under several sub objects
I know how to find by name
With XXX. Transform. FindChild (" ABC ")
According to the tag search?

CodePudding user response:

GameObject. FindGameObjectWithTag

CodePudding user response:

reference 1st floor wuyt2008 response:
GameObject. FindGameObjectWithTag

This is global search, how to search an object of child objects?

CodePudding user response:

GameObject. FindGameObjectWithTag (" father "). The GameObject. Transform. Find the Child ();
  • Related