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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question Can't get addressables and CCD to work in combination with UCB.

Discussion in 'Unity Cloud Content Delivery' started by arproducties, Sep 20, 2022.

  1. arproducties

    arproducties

    Joined:
    Sep 7, 2017
    Posts:
    14
    We've been working on localising our app, since we're trying to expand our app globally. To get this to point, we just started using the Localization package using Cloud Content Delivery to update our localization without having the need to create new builds every time.

    This works perfectly fine while we're building the app ourselves, also the content updates seem to be working great. So no complaints there. We've been using UCB for a while now too, as a means to make testing our app a bit faster on Android/iOS, without needing to create builds ourselves. However since we started using the Localization package, there have been a bunch of issues related to Localization not working.

    First of all, cloud builds don't seem to work with the already built addressables. All the text is replaced with "[Key Id xxxxxxxxxxx]"
    This seems odd to me, since it works fine on builds we create in the editor, but I guess that's what the addressables settings are for in the UCB configs.

    The second issue I run into is when actually enabling "Yes, build Addressables" in UCB configs. Regardless of the selected addressables profile, and whether they are set-up to use the CCD. I always run into the same error when creating a build:

    58: [2022-08-30T10:27:35Z - Unity] ERROR: Unable to create bucket from build step. Please either use the "Build and Release" integration or Create the active build target bucket and refresh CCD data sources.
    59: [2022-08-30T10:27:35Z - Unity] ERROR: Failed to build Addressable Assets
    60: [2022-08-30T10:27:35Z - Unity] Error Building Addressables: ERROR: Failed to build Addressable Assets


    When not failing the build the build works fine for the most part, just all localized fields use the default value they had and text objects adjusted through code using the localization package are just empty.

    Things we've tried to fix this issue, with no success:
    1. Tried to force BuildAndRelease on BuildPreProcessor and as PreExport method (using profile settings: Local = Built-in & Remote = CCD Bucket)
    2. Tried disabling Settings.CCDEnabled on BuildPreProcessor and as PreExport method (using Local = Built-in & Remote = Built-in)
    3. Tried pushing the addressables_content_state.bin to the CCD Buckets setting m_BuildAndReleaseBinFileOption to true, just to see if this would have any effect. Even though I don't even think this is related outside of updating content.
    Some things I haven't delved into are pre-build scripts, but the documentation on it is extremely scarce and not having any experience with writing shell scripts doesn't help that case at all.

    Unity version: 2021.3.7f1
    Package versions:
    • Addressables: 1.20.5
    • CCD Management: 2.1.0
    • Localization: 1.3.2
     
  2. arproducties

    arproducties

    Joined:
    Sep 7, 2017
    Posts:
    14
    Rolling back Addressables to version 1.19.19 seems to have resolved the issue. Not sure why the later versions are not compatible with UCB/CCD.