Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by kaplica · Aug 06, 2018 at 09:45 AM · references

How to fix lost references?

Hi,

I had a weird thing happening to my project. I imported the OneSignal lib, then moved it to the plugins folder, because it couldn't be referenced by a plugin and now I have lost in a project over +1000 references. Is there any way to bring the referencing back? It will be impossible or either very time to consume to go through all referencing again.

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by madks13 · Aug 06, 2018 at 11:04 AM

I'm not sure what the references you are talking about are. An imported lib only has a few references and they are to the projects inside a solution. As far as i've seen, Unity generaly creates 2 types of projects. One for runtime scripts, one for Editor scripts. All scripts referencing the library use Namespaces and class names. If your projects references the library, your scripts should be able to find the library.

The first thing to do is check in your project if it references the library. Check also that the library path is the same as the new one. If not, that is your problem. If you still have reference errors, i suggest you reboot your Editors (both Unity and the IDE you use for script editing). Unity is supposed to automatically add the references to managed libraries it finds inside the asset folders, so i think there might be a cache problem.

Comment
Add comment · Show 5 · 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 kaplica · Aug 06, 2018 at 11:07 AM 0
Share

It's not the library references that disappeared. All of the references, from scripts in CO$$anonymous$$PONENTS (in every component) in the whole project. Total disaster.

avatar image madks13 kaplica · Aug 06, 2018 at 12:00 PM 0
Share

Ah, i understand. Though, did they totally disappear or does it say it can't find the scripts? Also, do you have any way of reverting the change?

avatar image kaplica madks13 · Aug 06, 2018 at 12:42 PM 0
Share

The scripts are showing but the actual values in them disappeared. I cannot revert the changes. This kind of stuff makes me want to switch the engine...

Show more comments
avatar image
0

Answer by DevOnline · Apr 18, 2021 at 07:38 PM

@kaplica, it's insane. I've just had the same issue in 2019.3.14. I have build a project in VS2019. Then Unity Editor was reporting some incorrect assemblies pointing to non-existent code that was commented out. I've exited Unity, started again.... No compiler errors but ALL references to scripts, fonts, sprites etc are gone. I tried to diff the difference but it's a massive scene so I can't quite make sense of the change. It scares me a lot.

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.

Follow this Question

Answers Answers and Comments

90 People are following this question.

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

Related Questions

Sprite Packer and Texture2D References 0 Answers

All my scripts have stopped working after trying to build & run 1 Answer

Script Default References vs. Object Variable References? 1 Answer

How to find 'unreleased' references programmatically and prevent not enough memory crashes? 0 Answers

How to store references to many unique abilities? 0 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