Hi all,
I can use
gameObject.renderer.material.mainTexture= myTexture;
to add myTexture to a gameObject of type plane,
However I cannot figure out how to add the same terrain to an object of type terrain…
Any Help
Hi all,
I can use
gameObject.renderer.material.mainTexture= myTexture;
to add myTexture to a gameObject of type plane,
However I cannot figure out how to add the same terrain to an object of type terrain…
Any Help
Well your issue is, while a plane is a primitive object, a terrain is the product of a massive script, essentially.
if you look in there I believe SetAlphaMaps is what you are looking for, but I havent used it myself; best of luck
Thank you will try that.
does anyone know of a guide to scripting a splatmap ?
I wrote this answer on adding a texture to the terrain at runtime : How do you add terrain textures at runtime? - Questions & Answers - Unity Discussions