Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get child index unity

Transform parent;

int index = transform.GetSiblingIndex(); // get the index of the child
GameObject Child = parent.GetChild(index); // get the child with its index
 
PREVIOUS NEXT
Tagged: #child #index #unity
ADD COMMENT
Topic
Name
3+3 =