Search Unity

FYI: Cloud build supports addressable now.

Discussion in 'Addressables' started by Favo-Yang, Aug 31, 2019.

  1. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    464
    Looks like AAS is officially supported in Unity Cloud Build.except for WebGL target.



    upload_2019-8-31_14-6-35.png

    upload_2019-8-31_14-7-1.png
     
    Glaswyll and CDF like this.
  2. cdytoby

    cdytoby

    Joined:
    Nov 19, 2014
    Posts:
    181
    S**T, this is why

    ```
    AddressableAssetSettings.CleanPlayerContent();
    AddressableAssetSettings.BuildPlayerContent();
    ```

    doesn't work anymore for cloud build??????

    We send api request to cloud build, and now build addressable is default false and make our build broken.
     
  3. cdytoby

    cdytoby

    Joined:
    Nov 19, 2014
    Posts:
    181
    More info: it seems cloud build works, but not 100%.

    Occasionally, this will happen by cloud build:

    ERROR: Addressable Asset Settings does not exist.

    I build it again and this doesn't happen.

    Is it related to
    Code (CSharp):
    1. s_DefaultSettingsObject == null && !EditorApplication.isUpdating && !EditorApplication.isCompiling
    AddressableAssetSettingsDefaultObject.cs this?
     
    Last edited: Sep 3, 2019
  4. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    464
    I talked to unity tech support, for some reason they decided to release AAS support without WebGL. WebGL integration is on their backlog, but no ETA yet.
     
  5. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    464
    Interesting catch, if that happens very frequently please consider report a bug.
     
    unity_bill likes this.
  6. cdytoby

    cdytoby

    Joined:
    Nov 19, 2014
    Posts:
    181
    We're using Cloud Build API to do cloud build, can you tell me which API option is to build "Addressable"?
     
  7. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    464
    From what I can tell, you need configure it on web panel, then invoke the create new build api with buildtargetid. I don't know whether the api has a way to toggle addressable on the fly. Or you may submit a ticket to ask the cloud build team.

    upload_2019-9-13_23-14-49.png