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 cmos · Dec 15, 2017 at 08:45 PM · textresourcesrefresh

Refresh File Resource Folder or File

Hi

I have been stuck on this for hours, any help would be appreciated.

I have downloaded a file to the file resource folder.

When trying to access it, it doesn't see it unless I tab out of focus from unity editor and tab back.

How can I refresh the resource folder or file in it?

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 Glurth · Dec 15, 2017 at 09:50 PM

The menu item "Assets->Reimport All" will rebuild Unity's database of folders and files in the Asset folder (and it's sub-folders) of the project.

If your project has many files and folders this might take a while. Note that this will also recompile all scripts and run the import procedure on textures and models.

I suspect, but have not tested, that you can select the folder that holds these externally added sub-folders, and select asset->Reimport or right-click->reimport (as opposed to "reimport all"), to minimize the time it takes.

Comment
Add comment · Show 3 · 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 cmos · Dec 16, 2017 at 09:17 PM 0
Share

I need to refresh via code since when building the app for mac or android I can't do the Reimport all since that is the unity editor function and needs to be build into app automatically.

avatar image GuruJeya14 cmos · Oct 12, 2018 at 09:44 AM 0
Share

Same problem. Have you found any answer? If so, share please :)

avatar image cmos GuruJeya14 · Oct 12, 2018 at 04:56 PM 0
Share

I just ended up storing everything in player pref variables. Not ideal, but does the job.

AssetDatabases seems like the best way to do this though. I didn't have the time to figure it out but that way would be ideal.

avatar image
0

Answer by GuruJeya14 · Jun 11, 2019 at 09:44 AM

Load your file again using the local-downloaded-filepath

 //Acts as a refresh coroutine - Async
 public IEnumerator LoadDownloadedFile(string downloadedFilePath)
     {
         WWW loadFile = new WWW("file:///" + downloadedFilePath);
         yield return loadFile;
         if (loadFile.isDone)
         {
             //Do the needfull
             //You can now access the file from anywhere else
         }
     }
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

77 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

Related Questions

How do I read unicode text file on IOS from resources folder? 1 Answer

How to read text file from resources and store into 2d array 3 Answers

How to load a large text asset with minimum to no lag. 2 Answers

Updating txt from an url (webplayer) 0 Answers

[TextMeshPro] Generate Font Atlas failed, error code 8, how can I fix it ? 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