Search Unity

How to duplicate terrain and edit the copy?

Discussion in 'World Building' started by seseguy, Oct 2, 2020.

  1. seseguy

    seseguy

    Joined:
    Nov 30, 2019
    Posts:
    10
    I'm trying to duplicate terrain and edit the copy. I want to change texture (terrain layers). It doesn't work and it always apply changes to all terrain copies. Help me please.
     
  2. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    945
    Terrain data is stored in the TerrainData asset that is automatically created in your project folder if you create a new terrain. You want to copy that asset too and assign it to the hierarchy terrain duplicate.
     
    a1575208138 likes this.
  3. seseguy

    seseguy

    Joined:
    Nov 30, 2019
    Posts:
    10
    Where can I assign this terrain.asset to the hierarchy terrain duplicate? I tried to find it but failed.
     
  4. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    945
    Not sure out of my head, but it may be that they made the field hidden for some reason. You can set the inspector into debug mode

    where the field should be visible somewhere in the now displayed field salad.
    Afterwards you can set it back to normal
     
    Last edited: Aug 14, 2023
  5. wyattt_

    wyattt_

    Unity Technologies

    Joined:
    May 9, 2018
    Posts:
    424
    If I remember correctly, you can also drag and drop the TerrainData asset into the Scene or Hierarchy and a new Terrain GameObject will be made for you
     
    suIly, warthos3399 and restush96 like this.
  6. seseguy

    seseguy

    Joined:
    Nov 30, 2019
    Posts:
    10
    That worked, thank you!

    I wonder why does Unity do not allow us to do that without debug mode while terrain collider can be assigned.
     
  7. sadsack

    sadsack

    Joined:
    May 27, 2015
    Posts:
    156
    Unity terrainData, Can it be convert into other format? like .X file ?
     
  8. MoonGuy

    MoonGuy

    Joined:
    Mar 2, 2019
    Posts:
    2
    Thank you so much.
     
  9. NaumanHaider

    NaumanHaider

    Joined:
    Aug 6, 2020
    Posts:
    1
  10. jacobian

    jacobian

    Joined:
    Jul 20, 2015
    Posts:
    17
    Note, that you may also need to duplicate the terrain layers if you want to play with there shader properties, or just change the texture.
     
  11. haywirephoenix

    haywirephoenix

    Joined:
    May 17, 2017
    Posts:
    109
    Right click inspector tab > Debug - then you'll be able to assign the terrain data.
     
    browne11 likes this.
  12. Silver100

    Silver100

    Joined:
    May 4, 2019
    Posts:
    45
    I'm still having the same trouble none of the steps seemed to have worked?
     
  13. browne11

    browne11

    Joined:
    Apr 30, 2015
    Posts:
    138
    Not seen this before. Thanks for that tip!!
     
    haywirephoenix likes this.
  14. MahoX_99

    MahoX_99

    Joined:
    May 26, 2020
    Posts:
    1
    Thanks from future for help :p
     
    haywirephoenix likes this.
  15. Silver100

    Silver100

    Joined:
    May 4, 2019
    Posts:
    45
    Thanks got this to work now. Also naming layers and keeping all of them in each scene helped me (unchecking terrain layers not needed)
     
  16. yengNami

    yengNami

    Joined:
    Feb 14, 2021
    Posts:
    14
    Great! Thanks.
     
  17. DaReign

    DaReign

    Joined:
    Apr 12, 2013
    Posts:
    79