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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Cant load sprites after updating to 1.6.0

Discussion in 'Addressables' started by ardo314, Feb 2, 2020.

  1. ardo314

    ardo314

    Joined:
    Jul 7, 2012
    Posts:
    345
    I just updated my addressables package and suddenly sprites wont load anymore. All the other objects are fine, but i get InvalidKeyException when loading sprites.

    Thats what i tried:
    - Addressables.LoadAssetAsync<Sprite>("presentations/grounds/0/fire.png");
    - Addressables.LoadAssetAsync<Sprite>("presentations/grounds/0/fire.png[fire]");

     
  2. Thermos

    Thermos

    Joined:
    Feb 23, 2015
    Posts:
    148
    I can load sprite properly using 1.6.0.
    May be you cloud try to rebuild all bundles or using fast mode?
     
  3. ardo314

    ardo314

    Joined:
    Jul 7, 2012
    Posts:
    345
    It seems that if I chose the playmode script "Use Asset Database (faster)" the error occurs. But if I chose "Simulate Groups (advanced)" it works.
     
  4. Thermos

    Thermos

    Joined:
    Feb 23, 2015
    Posts:
    148
    Fast Mode also generates cache which could be invalid after upgrading. You can clear it using Build -> Clean Build -> All to wipe out all caches.
     
  5. ardo314

    ardo314

    Joined:
    Jul 7, 2012
    Posts:
    345
    That didn't fix it.
     
  6. rg_johnokane

    rg_johnokane

    Joined:
    Oct 10, 2018
    Posts:
    11
  7. ardo314

    ardo314

    Joined:
    Jul 7, 2012
    Posts:
    345