Il n'y a pas de rendu attaché au gameObject
//renderer is attached to mesh not gameobject so...
void Start()
{
// pass true in order to also include disabled or inactive child Renderer
foreach(var rend in GetComponentsInChildren<Renderer>(true))
{
rend.material.color = colorStart;
}
}
AB_498