How to find the child of child gameobject on runtime instantiated object?

Hi there,

I’m stuck with this.

How to find the child of child gameobject on runtime instantiated object?

As in the ref image i need to find '‘HeadTop_End’
image.png

Original Post on Discord

by user 389863047159873540

Hi, you can find docs about it here. It is the same as in three.js. You can traverse the children and search for a name or search for a specific component. Your script could also just have a reference to that particular object that you assign in Unity (which i would recommend) to avoid mistakes at runtime

Here is how you make a reference: Script Examples | Needle Engine Documentation