Answers for "how to access first child of parent unity"

C#
6

first child element javascript

Both these will give you the first child node:

console.log(parentElement.firstChild); // or
console.log(parentElement.childNodes[0]);

If you need the first child that is an element node then use:

console.log(parentElement.children[0]);
Posted by: Guest on September-05-2020
3

how to access first child of parent unity

Transform firstChild = GameObject.Find("obj1").transform.GetChild(0);
Posted by: Guest on May-11-2020

Code answers related to "how to access first child of parent unity"

C# Answers by Framework

Browse Popular Code Answers by Language