Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
1
Question by Lambda Knight · Jul 07, 2014 at 07:30 PM · assetserializationexternal-libraries

How Is 'fileID' Generated For Classes Inside an External DLL?

When you link to a MonoBehaviour that is inside of an external DLL, the resulting asset file refers to that particular class by a 'fileID' and the 'guid' of the external DLL. For example, a MonoBehaviour named 'a' inside of an external DLL would be show up in an asset's YAML file as:

m_Script: {fileID: -1880535464, guid: 50df42a15edf64f1caa6bfd8fd2576ef, type: 3}

Where the guid (50df42a15edf64f1caa6bfd8fd2576ef) is the GUID assigned by Unity to the external DLL file. The 'fileID', however, is constant and is based on both the class's namespace and name. However, I cannot figure out how Unity takes the namespace and class name and generates the 'fileID' field. In our project, we have moved several classes into external DLLs, which unfortunately breaks the links in all of our asset files. If we could generate that 'fileID' field, we could easily repair those broken links inside of our asset files. Could you please tell us how to generate the 'fileID' for a particular class? Thanks.

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 baoluqi · Jun 02, 2015 at 11:04 AM 0
Share

Hello, I also encountered the same problem with you, I do not know you have not solved

1 Reply

· Add your reply
  • Sort: 
avatar image
3

Answer by Lambda Knight · Jun 03, 2015 at 06:55 AM

Hey, I figured this out a while back! I posted a solution at http://forum.unity3d.com/threads/yaml-fileid-hash-function-for-dll-scripts.252075/#post-1695479

Comment
Add comment · Show 2 · 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
avatar image baoluqi · Jun 03, 2015 at 07:49 AM 0
Share

Thank you for you reply and Thank you for sharing this amazing thing! But I have a question , If I want to repair those broken links inside of our asset files, I need to change asset's YA$$anonymous$$L file ?

avatar image baoluqi · Jun 04, 2015 at 03:28 AM 0
Share

When I change the .meta file, unity sometimes will collapse, don't know you don't have appear this kind of circumstance?

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.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

How to re-serialize assets so they are stored as text? 1 Answer

Asset Serialization - what is "Mixed" 1 Answer

Custom assets give Missing (Mono Script) 0 Answers

Assistance needed with serialization, inheritance and scriptableobject 1 Answer

How to use XML Serialization to load custom asset types 3 Answers


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