So lately ive been playing with the terraindata.splatPrototype variable. It contains the texture from what I can tell that i am using to create my terrain. So if I got grass,sand,dirt.
and this is allowed/true, I check the splatPrototype’s name after wards and it checks out.
So my problem is when I try something like
terraindata.splatPrototype[0].texture = grassTxt;
IT compiles and runs, no errors, but it never changes the texture.
Any idea why I can assign these variables, but they still do nothing? Is this a built in problem or am I just going crazy. Any idea how to get around this.
I’ve run into a similar problem, even after using the Flush() method to (allegedly) apply the changes.
Why is there virtually no documentation for anything dealing with runtime modification of terrain?
If I then output a Debug.Log, my splatPrototype still has the same value even though the function above does not report an error.
Any idea on how to make this work anyone ?
EDIT: I actually found a workaround by modifying the content of the textures while keeping the same file name instead of jumping from a texture to another, seems to work…