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

AddressableAssetSettingsDefaultObject.Settings is null when running in batchmode

Discussion in 'Addressables' started by wolilio, Nov 6, 2020.

  1. wolilio

    wolilio

    Joined:
    Aug 19, 2019
    Posts:
    28
    i have a build task in ci ,the task is
    1. generate some resources
    2. use AddressableAssetSettingsDefaultObject.Settings to assign step1's resources to corresponding group
    3. use BuildPipeline.BuildPlayer to build the player
    but i get error in step2 ,cause AddressableAssetSettingsDefaultObject.Settings is null ,please help

    --
    unity:2019.4.10f1
    addressables:1.16.7
     
  2. dirty-rectangle

    dirty-rectangle

    Joined:
    Apr 23, 2015
    Posts:
    78
  3. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,795
    I'll kick this to the team for some guidance.
     
  4. wolilio

    wolilio

    Joined:
    Aug 19, 2019
    Posts:
    28
    no. but it's fine when run the command as root , so i don't dig deeper , you can give a try
     
  5. locbui

    locbui

    Joined:
    Nov 4, 2013
    Posts:
    15
    Hello guys, I got the same issue here.
     
  6. locbui

    locbui

    Joined:
    Nov 4, 2013
    Posts:
    15
    AddressableAssetSettingsDefaultObject.Settings is null when making build from command line with batch mode enable
     
  7. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,438
  8. mons00n

    mons00n

    Joined:
    Sep 18, 2013
    Posts:
    299
    I just submitted a bug report for my repro case (details in the thread linked by @Peter77)
     
  9. MikeHergaarden

    MikeHergaarden

    Joined:
    Mar 9, 2008
    Posts:
    1,027
    Does anyone have a workaround for this?
    Using EditorCoroutines to await the compilation doesn't seem to work as the recompile seems to kill the executing code.
     
  10. mons00n

    mons00n

    Joined:
    Sep 18, 2013
    Posts:
    299
    a workaround was just suggested from one of the unity guys in the linked thread MikeHergaarde, might want to give that a shot (I have not yet)
     
    MikeHergaarden likes this.