Search Unity

Unity Connect + Addressables?

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

  1. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,555
    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,555
    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?