- Home /
Rename Alder Tree Asset Without Ruining Lighting
I'm using the Alder tree model in my scene, the one from the Terrain Assets free package. It works fine, including the lighting.
Then I change the file-name of the Alder asset. The lighting immediately gets messed up in the Scene view, and preview, with some areas of the leaves becoming far too bright.
How do I rename the Alder tree asset without ruining its lighting? And why would the Alder tree be having this problem?
Odd. I deleted the entire Terrain Assets folder, reimported it from a backup before the problem, and the messed-up lighting remains.
The lighting problem persists, even when I delete the Alder instance in the scene, and drag a new one in from the newly imported Terrain Assets folder, which has exactly the same contents as the backup before the problem. So it seems as though the Unity IDE itself has a problem.
Edit: Btw, I played around with some import settings, and the "messed-up lighting" is apparently identical to what happens when you check the "Swap UVs" checkbox on the Alder tree asset. Note that this, too, causes the same irrevocable change on the Alder tree's lighting.
Edit 2: Did some more testing. Apparently, you can only fix the problem if you overwrite the Library folder with a pre-lighting-problem backup AND rebuild the program rather than simply run it in Unity. THEN the Alder tree's lighting will return to normal. Only way I've found so far. (other than perfor$$anonymous$$g a complete backup, which is ultimately the same solution)
Answer by Venryx · Oct 07, 2012 at 06:51 AM
Well, I finally found a work-around, but it's very hacky.
I used a Process Monitor to see what files were changed when I renamed the Alder asset file. After narrowing-down the results, the files in these two folders were the prime suspects: "Library/Previews/25" and "Library/metadata/25"
To make a long story short, I replaced the "/metadata/25" folder with a backup prior to the lighting-problem/asset-rename, which kept the new Asset name while also fixing the lighting problem. (I had to rebuild the project for the changes to show up, though)
Your answer
![](https://koobas.hobune.stream/wayback/20220613082004im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
I can see trees, even when there is no light 2 Answers
Editor prompt asset name 2 Answers
3D objects assets on 2D background 0 Answers
How to change an object's name inside an asset file? 0 Answers