Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

TerrainData problem in 2018.3

Discussion in 'Linux' started by i_am_kisly, Oct 6, 2018.

  1. i_am_kisly

    i_am_kisly

    Joined:
    Feb 16, 2015
    Posts:
    22
    I created TerrainData
    Code (CSharp):
    1. TerrainData terraindata = new TerrainData(){
    2.     size = new Vector3(328.96f, 194.56f, 328.96f),
    3.     baseMapResolution = 256,
    4.     heightmapResolution = 257
    5. };
    But in Editor has multiplier for Length and Width. I see a multiplier depending on the value of heightmapResolution.
    If heightmapResolution> 32, then x2.
    If heightmapResolution> 64, then x3.
    ...
    If heightmapResolution> 256, then x8.

    Is this a bug or a feature?

    upload_2018-10-6_23-47-34.png