Forum rules - please read before posting.

Addressables (Play Asset Delivery) vs. AC

edited April 20 in Technical Q&A

Hi,

just a quick question please. My game has 2GB and if I want to publish it on Google Play (Android), I have to make base .aab file max 200MB and then asset pack with remaining assets of the game because Google don't accept bigger base files.

My goal is to have first scene (Title Screen) in InstallTime group and the rest in OnDemand group.

To achieve this I have to use Unity addressables and Play Asset Delivery framework.

I installed it both, but..

  1. Are there some special settings to work with addressables and AC different than in AC manual?
  2. I don't have that checkbox "Load scenes from Addressables?" in Settings Manager (I have checked "Reference scenes by Name" and "Load scenes asynchronously?").
  3. I can't refer to a scene by its Addressable name in Actions, only by Name.

Is there something I didn't set up to?

Unity 2023.2
AC 1.86

Thanks!
Jakub

Comments

  • If Reference scenes by is set to Name, and Load scenes asynchronously? is checked, then the option ought to show. Can you share screenshots of your full Settings Manager?

    When scenes are set to load from Addressables, you can reference them by entering in the scene's key into the Action's Name field.

  • Here are the screenshots, thanks!

    Jakub

  • When I'm building the game, there's only one .aab 250MB file, but the game has 2GB.

  • The Reference scenes by field refers to the one in the Settings Manager - not the Action.

  • I switched Reference scenes by in the Settings Manager to Name:

    Then Load Scenes From Addressables? showed up:

    But Scene: Switch action still looks the same:

    When I switch the scene via Action list, it throws some error:

    Game build still has only one .aab file 250MB.

    Are there any other settings in the AC related to addressables?

    Thanks,
    Jakub

  • I spent last week googling about Addressables and Play Asset Delivery and now I have according to Addressables Report:

    installtime_scenes ~10 MB (only Title Screen scene)
    ondemand_scenes ~1.35 GB (rest of scenes)

    I don’t have any scenes in Scenes In Build except first one – Title Screen.
    AAB was created (250MB).
    But Google Play reports: „Base module exceeds 200 MB“.

    So something big is still being packed into the base module that is not an Addressable PAD asset pack.

    My Assets/Resources folder has around 200kb.

    Maybe Assets/AdventureCreator/Resources folder with Speech files (350MB) are packed into base module? Can I put these into Addressables?

    Any advice welcome, thanks!

    Jakub

  • Another questions here please.

    According to AC Manual I switched Referenced Speech Files to By Addressable and now base build is much smaller.

    Unity moved speech files into another folder outside Resources and I simplified their addressable names:

    But I don't see the Addressable field in speech line:

    I also got some errors when playing the game in editor (i see speech lines when character is speaking):

    So I still have two questions please.

    1. What I'm doing wrong with referencing speech audio files via addressables?
    2. How to reference scene switches by addressables?

    Thanks and have a nice day!
    Jakub

  • When Load Scenes From Addressables?, you can now enter in the scene's Addressable key into the Action's Name field. Currently these look to be set to their full filepath, so you'll want to simplify these (e.g. "Scene/Hangar") and then enter this same name into the Action.

    When speech audio is referenced by Addressables, the keys are pre-determined - you can see these listed in your screenshot. Player889 (if using the original language), and Player889_English etc for specific languages. You'll need to update your audio assets with these Addressable keys.

    An aside note: you should avoid placing any assets in the AdventureCreator root folder - your speech audio in Resources / Resources_moved ought to be moved out and put into a separate directory. That'll avoid any potential issues when re-importing / updating AC.

  • Thank you Chris, it's working now!
    Jakub

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.