📅  最后修改于: 2022-03-11 15:00:27.338000             🧑  作者: Mango
Aha! So the material is never actually a component of an object. Its an extension of the renderer component.
Got it, thanks!
GameObject go_child = go.transform.FindChild("dummyspown").gameObject;
go_child.GetComponent().material.SetColor("_Color", Color.red);