Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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