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
Source by nullorempty.org #
 
PREVIOUS NEXT
Tagged: #child #index #unity
ADD COMMENT
Topic
Name
8+7 =