For a script i need the Terrain Height (found under Resolution in Terrain).
I tried it with terrainData.heightmapHeight and terrainData.heightmapResolution but both of them seem to be wrong.
I made a screenshot so that you can easily see what value i need:

You can use terrainData.size to get the maximum size of the terrain in world units, so for that value, it would be terrainData.size.y
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With