Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Custom Hosting For Addressables

Discussion in 'Addressables' started by michael_devidebyzero, Jul 4, 2019.

  1. michael_devidebyzero

    michael_devidebyzero

    Joined:
    Jul 18, 2018
    Posts:
    2
    hello there,
    I am in need of assistance I have an existing rest server and would like to know if there is a way to use this to store my addressables? I have to add a jwt for this to happen tho. if this is possible could someone give me a sample of how to achieve this result
     
  2. Elmstrom

    Elmstrom

    Joined:
    May 8, 2015
    Posts:
    4
    I would also love a quick guide to custom hosting
     
  3. cjdbeans

    cjdbeans

    Joined:
    Jun 29, 2017
    Posts:
    8
    I'm using s3 as custom hosting and do the following:
    1. Create a profile for it. I call mine S3 Hosted.
    2. Choose Remote Catalog
    3. Configure addressables remote load path to be my CDN that sources my s3 bucket
    4. Configure addressables remote build path. Doesn't really matter where, but your build pipeline needs to know this path. I keep mine out of /Assets and add this path to gitignore so that bundles are not added to my source control
    5. I have a step in my build pipeline that moves addressables built bundles as well as catalog and catalog hash (found in the remote build path) to s3. In non-s3 cases you'd move these bundles to where ever you're hosting from..
    6. Make sure you've build your app in this profile and it should use the remote load path you've provided and your bundles/catalog should be there.
     
    unity_bill likes this.