Referencing children in the hierarchy.

Hi, I have a hopefully simple question. Suppose I have a model in the hierarchy which contains a number of child objects. Each child object has its own material/renderer etc. If I place a script in the parent function is there any way from there to address the components on a child object?

At the moment I am creating a variable for each child and populating them in the inspector, but I feel there much be a better way than this.

Thanks in advance

Remember to precache the results of this function and don’t use it inside update/ongui because it is even more expensive than GetComponent.

Ah! Many thanks.