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. Dismiss Notice

Changing Terrain Res Deleted Grass. I have a backup from yesterday. How do I restore? Please help.

Discussion in 'Editor & General Support' started by Razputin, Oct 28, 2020.

  1. Razputin

    Razputin

    Joined:
    Mar 31, 2013
    Posts:
    347
    Hello,

    I was optimizing my game and I changed my terrains detail resolution from 1024 to 512 to see if that would cause any improvement. This caused all of the grass/details to be removed. I attempted to ctrl+z but this did nothing. I closed unity without saving immediately to try and restore the grass.

    Unfortunately it was gone, perhaps I saved by accident or perhaps the grass just auto saves idk. I have a complete project backup from yesterday, if I want to restore the grass what do I need to reimport from yesterdays backup into my project (I already tried re-importing the terrain from yesterday but there's no grass on it, so I guess the grass is not stored in the terrains meta data?), or is there a way to restore my grass details.

    I really do not want to have to put down all of my grass details again... this is extremely disheartening. I would not expect changing the detail resolution to result in such a massive progress wipe that cannot be undone with ctrl+z.

    Thanks.
     
  2. HIBIKI_entertainment

    HIBIKI_entertainment

    Joined:
    Dec 4, 2018
    Posts:
    535

    Super sad to hear this.
    Unfortunately because the resolution changes says that it has to resample the data it does erase tree and details ( as stated above in the inspector)

    Because of this as you notice ctrlz won't recover this.

    If you have a back up from yesterday, you can just grab the terrain.asset file from there and potentially just drop it In, instead of having to reimport the whole thing.

    It shouldn't mess up GUIDs or anything. (In theory)

    We back up our terrain files very frequently just incase of things like this with our art team
     
  3. Razputin

    Razputin

    Joined:
    Mar 31, 2013
    Posts:
    347
    Thanks I resolved this already but I appreciate it. The reason I was having trouble re-adding the terrain was because I was trying to drop the re-imported terrain asset into the terrain-data, when really it just needed to be dropped back into the scene.
     
    HIBIKI_entertainment likes this.
  4. HIBIKI_entertainment

    HIBIKI_entertainment

    Joined:
    Dec 4, 2018
    Posts:
    535
    Excellent to hear!

    And yes .terrain is pretty much its own object in the hierarchy.

    Really glad to hear you've have success with it.
     
    Razputin likes this.