- Home /
Question by
Vadymka · Jul 26, 2014 at 03:13 PM ·
getcomponentcomponent
How to GetComponent from a object inside a parent.
i got this, but its looking for the component in playerPrefab. but the component is inside it.
how to make it too look in baseMale from Player
Comment
Best Answer
Answer by dsada · Jul 26, 2014 at 04:12 PM
made.GetComponentInChildren<SCR_playerMove>();
This will give back the first SCR_playerMove that it will find
Your answer
![](https://koobas.hobune.stream/wayback/20220613155029im_/https://answers.unity.com/themes/thub/images/avi.jpg)