- Home /
Question by
Toggy11 · Jan 12, 2014 at 11:09 AM ·
javascripting
Changing Material In A Script? [Sorted]
How would I change a material in a script. I am generating infinite terrain though for my blocks I can't change the material... Everybody elses code doesn't work on mine for changing materials.
Comment
Hi, post your code. This is very simple, it must work. the solution is to set/setup a new material over renderer.material.
Best Answer
Answer by morbidcamel · Jan 12, 2014 at 11:40 AM
Try researching Terrain.terrainData.SetAlphas