• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Venryx · Oct 07, 2012 at 06:42 AM · lightingassettreerename

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?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Venryx · Oct 07, 2012 at 06:04 AM 0
Share

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)

1 Reply

· Add your reply
  • Sort: 
avatar image
0

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)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Spotlight illuminating half model 2 Answers

How to keep a persistent reference to an asset? (Is there an OnAssetRename callback to update the asset's name if it changes?) 1 Answer

Tree Soft Occlusion Bark lighting problem 0 Answers

Changing the name of a project-asset in C# 1 Answer

How do I get lightmap shadows working for trees? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges