- Home /
about transform find
Can Someone Enlighten me about this?
Transform child = transform.Find("blabla");
child.renderer.enabled = true;
but child is a GameObject right so why Transform?
Comment
Best Answer
Answer by whydoidoit · Mar 02, 2013 at 07:52 PM
Transform.Find searches the hierarchy defined by transform relationships beneath another transform. GameObject.Find finds any game object based on name. It's Transform because Transform.parent defines the relationship between the objects.
Your answer
![](https://koobas.hobune.stream/wayback/20220613093705im_/https://answers.unity.com/themes/thub/images/avi.jpg)