Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how ot get a child in unity

//with the index
parentGameObject.transform.GetChild(0).gameObject
//or with the name
parentGameObject.transform.GetChild("name").gameObject
 
PREVIOUS NEXT
Tagged: #ot #child #unity
ADD COMMENT
Topic
Name
7+4 =