Open Afterlife301209 opened 2 years ago
I have the same problem
In MapGenerator, copy this line: textureData.UpdateMeshHeights(terrainMaterial, terrainData.minHeight, terrainData.maxHeight);
And then delete it. Paste it as the first line in the existing DrawMapInEditor() and also create a private void Awake() and put it there as well. Should fix you right up.
I am getting this error AND I TRIED EVERYTHING TO FIX IT : UnityException: SetFloatImpl can only be called from the main thread.