Quantcast
Channel: Questions in topic: "tree"
Viewing all articles
Browse latest Browse all 513

Access Terrain Tree Material From Script

$
0
0
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#?

Viewing all articles
Browse latest Browse all 513

Trending Articles