I'd like to add a bit of seasonal flare to my trees which are not placed gameObjects in the hierachy, they are trees added via the Terrain paint widget. I created a gameObject test tree that pingpongs between red and green via script, added that tree into the terrain tree painter and put a few down but at runtime they don't change. I had a feeling it wouldn't be that easy ;-)
Is there a method to access a TERRAIN tree's material and modify it via script/C#?
↧