how do I edit a component of a specific child of an instantiated object?

I’m trying to instantiate a new GameObject from a prefab and change the material of a child GameObject. I found several answered Questions here, but the answers do not seem to work for me, so please help me out. :frowning:

GameObject newCharacter = Instantiate(character, spawnPosition, spawnRotation) as GameObject;

The child GameObject is called “Body”. My target is to either swap the associated matierial with another one or change some details of it, like the albedo color.

MeshRenderer bodyRenderer = newCharacter.transform.Find("Body").GetComponent[MeshRenderer]();

Replace those square brackets with angle brackets. Unlike GameObject.Find, Transform.Find looks at only children of the Transform in question.

GameObject m_Object = gameObject.transform.FindChild(“child”).gameObject;
Transform m_Transform = m_Object.GetComponent();