Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Unity Connect + Addressables?

Discussion in 'Unity Connect' started by adamgolden, Jul 11, 2020.

  1. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,558
    Is it possible to use Addressables in Unity Connect WebGL game share? I moved all Addressable assets to a Local group, works fine in browser locally using WAMP. I upload and run and get this in Javascript Console:

    unity_connect_plus_addessables.jpg

    If it's possible, what's the process? Do I need to structure the .zip differently than how it's generated? This is the content of the zip:

    unity_connect_plus_addessables_2.jpg
     
  2. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,558
    I was able to get a WebGL build using Addressables working without the StreamingAssets folder (by hosting the bundles on another server and checking Build Remote Catalog in Settings and using Addressables.LoadContentCatalogAsync and adding Access-Control-Allow-Origin to the .htaccess in the folder), but when I upload the zip, Unity Connect tries to load from there via HTTPS (and I don't have a certificate/SSL on there, nor any immediate plans to add one). I do get that's just how it is (an https page needs everything else loaded via https as well).

    Are projects that use Addressables eventually going to be compatible with Unity Connect? Is there already some way that just hasn't occurred to me?