# How to access children transforms from parent GO script?

**URL:** https://discussions.unity.com/t/how-to-access-children-transforms-from-parent-go-script/67406
**Category:** Questions & Answers
**Created:** [March 31, 2013, 3:13pm UTC](https://discussions.unity.com/t/how-to-access-children-transforms-from-parent-go-script/67406 "2013-03-31T15:13:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![koval832](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@koval832](https://discussions.unity.com/u/koval832)
#### Post date: [March 31, 2013, 3:13pm UTC](https://discussions.unity.com/t/how-to-access-children-transforms-from-parent-go-script/67406/1 "2013-03-31T15:13:50Z")

</div>

Hi!

I have a gameObject with some structure inside like this:  
Soldier/Armor  
Soldier/Head  
Soldier/Arms

How I can access to renderer.material.mainTexture or renderer.material.color of children transforms only (ie Armor.transform) from csharp script on parent object (Soldier)?

Thanks!

---

<div class="post-metadata">

### Author: ![robertbu](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@robertbu](https://discussions.unity.com/u/robertbu)
#### Post date: [March 31, 2013, 5:28pm UTC](https://discussions.unity.com/t/how-to-access-children-transforms-from-parent-go-script/67406/2 "2013-03-31T17:28:18Z")

</div>

You can use [Transform.Find()](http://docs.unity3d.com/Documentation/ScriptReference/Transform.html) to find the transforms by name. Then you can use the renderer in the transform.

```
Transform trans = transform.find("Head");
trans.renderer.material.color = Color.red;

```

If you have a hierarchy of transforms, you can also walk the hierarchy:

```
Transform trans = transform.find("Body/Leg/toes");

```
