Programmatic Terrain Data Incorrect Values

I’m instantiating a Terrain object with Terrain.CreateTerrainGameObject(); quite literally:

TerrainData td = new TerrainData();
td.size = new Vector3(129, 100, 129);
td.heightmapResolution = 129;
GameObject t = TerrainCreateTerrainGameObject(td);

And in the inspector the Terrain Width and Terrain Height both display: 516 (129*4).

Why is are these values getting multiplied by 4? Furthermore, how do I set them such that they don’t get changed?

sigh, As it turns out, if I set the resolution first, and THEN the size, the size will stick as desired. I sure wish this had been documented somewhere :eyes: