Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

ReImport All

Discussion in 'Editor & General Support' started by Abended, Dec 30, 2022.

  1. Abended

    Abended

    Joined:
    Oct 9, 2018
    Posts:
    142
    Learn from me, don't ever click this option from the context menu. Ever.

    p.s. Why is this an easy-to-click option in a context menu?
    This should come with a modal - Are you really really sure you want to do this?
     
  2. DragonCoder

    DragonCoder

    Joined:
    Jul 3, 2015
    Posts:
    1,463
    What happened? Unless there's a new bug, that's safe and also recommended to use after a switch of editor versions.
     
  3. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,003
  4. Abended

    Abended

    Joined:
    Oct 9, 2018
    Posts:
    142
    Oh, it may be reimport all...
    I don't want to try it again to verify if it has a confirmation!
    I'd love a setting to remove it from the context menu though!
     
  5. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,003
    It does:

    upload_2022-12-30_19-36-16.png

    I do agree the right click menu is a weird place for it. It's a rare operation, not sure what it's doing there. (plus I prefer deleting the library when I intend to rebuild it, seems cleaner, so in my case I never click it intentionally).
     
  6. Abended

    Abended

    Joined:
    Oct 9, 2018
    Posts:
    142
    I had selected a few prefabs and mistook it to reimport all selected. That's what I get for not reading!
     
  7. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,003
    Yeah, fair enough.
     
  8. jakesee

    jakesee

    Joined:
    Jan 7, 2020
    Posts:
    26
    My root folder, i.e. Assets and everything outside is 1.5GB.... how long will it take to re-import all :(:(
    I just clicked on thinking it will just reimport a few selected .fbx files!!
     
    Last edited: Sep 7, 2023
  9. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,003
    That's not too big. How much time it will take depends on how many textures you have and what compression settings you're using.
     
  10. jakesee

    jakesee

    Joined:
    Jan 7, 2020
    Posts:
    26
    It has been 1 hour already... roughly how long do I need to wait before giving up and force quitting? How do I know it is indeed processing? Thanks.
     
  11. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,003
    Doesn't it have a progress bar that says what it's doing?
     
  12. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,136
    What's your system? Is the project on an HDD? Is it a lot of mostly small files?
     
  13. jakesee

    jakesee

    Joined:
    Jan 7, 2020
    Posts:
    26
    @AcidArrow this is how the progress bar looks like, it doesn't look like it's moving.

    upload_2023-9-8_5-24-32.png

    I am not using any fancy set up. The files are on my internal HDD.

    upload_2023-9-8_5-25-18.png

    How do I repair it if it fails to reimport again and again?
     
  14. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,136
    Yeah, I thought that might be the case. Unity's Library cache consists of a large number of small files which is very slow on an HDD (small files spread across the platter caps out at 0.5MB/sec for most HDDs). I'm guessing based on the wording that your SSD is an external drive?
     
  15. jakesee

    jakesee

    Joined:
    Jan 7, 2020
    Posts:
    26
    For anyone else who finds this post in the future. The steps I took leading up to successful Unity start up goes like this:
    1. I clicked on Reimport All
    2. Unity restarts itself and began loading (or so I thought)
    3. I waited for 30 mins and force terminated it because the progress bar was not moving, then I attempt to re-open the project again.
    4. While waiting, I came to this forum to check how long other people took, no conclusive answer.
    5. I checked the process activity and confirmed (see above) that there is no CPU and memory activity after 1 hour of waiting.
    6. I force terminated it again, but this time I started up another test project to make sure Unity is still working.
    7. With the test project still opened, I got to the File menu and re-open my actual project. This time, the progress bar was moving actively and the splash screen is updating quickly. In less than 20 mins, whole project was loaded.