This old post was recently updated so I looked at it too. The issue is that the Sycamore has two materials and the proposed solution only chooses the first (the trunk).
You just need to change this line
renderer.material.color = Color.Lerp (colorStart, colorEnd, lerp);
to this
renderer.materials[1].color = Color.Lerp (colorStart, colorEnd, lerp);
Since there is more than one material, just change it to reference to **materials** and add the [1] bit. I tested this on the Sycamore w/ Collider tree and the leaves changed.
Be aware that if you are building this functionality in the hopes of later moving it to your Terrain trees, that won't work. I posted something about that awhile back and the code is pretty bad but at least it shows an idea
http://answers.unity3d.com/questions/521056/access-terrain-tree-material-from-script.html
Trending Articles
More Pages to Explore .....