|
I have been trying different ways to get this code for a couple of days now. No matter what I try it's been throwing errors left right and centre, usually about splat-maps being null. The terrain is generated from an instantiated prefab with this script attached. The inspector is set with all of the pieces in place but it still doesn't work. Can someone please tell me where I'm going wrong.
(comments are locked)
|
|
Just a wild guess: what if you moved the initialization of Tex1-4 into the start of the Awake function? 'textures' too. And you can remvoe dht TerrData inits from the above section, leave it in Awake only
(comments are locked)
|
|
Thank you, a wild guess is still a good help :-) I managed to get the textures loaded by using Resources.Load and putting them into a resources folder. The API example at the 6x0 website gives me the following error. link text Error: heightStops contains an incorrect number of values.
(comments are locked)
|
