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

Addressable "Use Asset Database (fastest)" mode not working

Discussion in 'Addressables' started by Onekru, Dec 20, 2021.

  1. Onekru

    Onekru

    Joined:
    Sep 14, 2020
    Posts:
    4
    Hi,

    I'm not sure what is wrong but my addressable fastest mode doesn't seem to work.
    I have several prefabs that I marked as addressable. If I change anything in the prefab, say add a new component, it doesn't reflect in the addressable version at runtime (in the editor). I have to rebuild the addressable asset before it will reflect. Worst still, if I mark a new asset as addressable, that asset won't be available in the addressable system at runtime until I rebuild the asset database even though I'm using the fastest mode.
    The platform I'm developing in is the android platform so my shaders will be rendered as pink on any object I load from the addressable system.

    I'm not sure what's wrong. If anyone can point me to the right direction, I'll appreciate. The project is a new project. I just imported the addressable asset package. I've not done any settings.
     
  2. Onekru

    Onekru

    Joined:
    Sep 14, 2020
    Posts:
    4
    So I figured out what's wrong...

    The addressable asset system is saving something to the player pref. That thing is what the editor is using to locate the asset in the asset database.

    I was deleting the player pref keys on start :(
     
    ronjart and lincolncpp like this.
  3. lincolncpp

    lincolncpp

    Joined:
    Sep 25, 2021
    Posts:
    5
    You saved my life, I was deleting the playerprefs as well, thanks man!!
     
    ronjart likes this.
  4. ronjart

    ronjart

    Joined:
    May 16, 2013
    Posts:
    100
    Same. Thanks for helping out!