Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Question Locking Terrain?

Discussion in 'World Building' started by doncreger, May 18, 2022.

  1. doncreger

    doncreger

    Joined:
    Nov 17, 2020
    Posts:
    3
    Does anyone know of a way to lock unity terrain from edits?

    In the attached image, I want to make edits to terrain #1 but NOT terrain #2. I do not want stokes or stamps to affect terrain #2.

    Thx in advance!!
     

    Attached Files:

  2. doncreger

    doncreger

    Joined:
    Nov 17, 2020
    Posts:
    3
    Seems like I stumped the Unity community on this one... Any takers?
     
  3. r31o

    r31o

    Joined:
    Jul 29, 2021
    Posts:
    460
    Terrains have a group id that allows to edit multiple terrains at once. If you change the id of one, the terrains will be disconnected, so you will have to edit them separately.
     
  4. doncreger

    doncreger

    Joined:
    Nov 17, 2020
    Posts:
    3
    Thanks for the reply r310!
    As you can see with the images below the group IDs are different on Terrain_1 and Terrain_2 and yet they are still affected as if they were connected. Is there somewhere else I should be looking to change the group ID?

    upload_2022-5-23_8-37-55.png
    upload_2022-5-23_8-38-29.png
     
  5. Deleted User

    Deleted User

    Guest

    Does using overlays help???
     
  6. r31o

    r31o

    Joined:
    Jul 29, 2021
    Posts:
    460
    You havent do anything, the terrain heights are the same as in the first post.
    If you now try to edit them, you cant edit both at once, but the changes you made previously still there.
     
  7. Pollo_Loc0

    Pollo_Loc0

    Joined:
    Apr 27, 2022
    Posts:
    1
    Was this ever resolved? I have 2 adjacent terrains similar to the screenshots above. I would like to lock one of the terrains from edits. If I attempt to edit an adjacent terrain, the locked terrain next to it will still be editable. Even though it's locked, it doesn't prevent the terrain from edits. The user can lock a terrain, select another terrain for edits, move the cursor over the locked terrain and still be able to edit that terrain.