How to set width and length of terrain via script ?

i couldn’t find any solution

thanks

Use TerrainData.size.

Via script i don’t think it is possible, but you can click on “terrain” on the top left screen, click on “set resolution…”, then you can edit the width, length, and height of a terrain.
But via script, i have no idea.
Ands since when you make a nice terrain and change the resolution, it goes flat and you must remake the map… So editing the size inside of the game qith a script seems improbable.