The code snippet below always prints a result of 33 (the default TerrainData.heightmapResolution) even right after I change it to 17. This doesn’t seem to make any sense, especially since the same code used to work. Does Unity now treat heightmapResolution as read-only, or is my machine haunted by gremlins?
var td:TerrainData = new TerrainData();
td.heightmapResolution = 17;
print (td.heightmapResolution);