Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Use for WebGL hosting

Discussion in 'Unity Cloud Content Delivery' started by karmatha, Sep 23, 2020.

  1. karmatha

    karmatha

    Joined:
    Aug 25, 2012
    Posts:
    46
    Hi I have the following question,

    I've enrolled into Unity Cloud Content Delivery hoping it could be a solution for hosting my webgl projects. My use case is as such: I'd like to be able to upload the entire build folder that Unity creates to UCC and have it accessable via a public URL (with brotli compression).

    I synced the files to a bucket, created a release but now I'm stuck. I can get a public url to the index.html but of course the files relative to that (the ones in the /Build folder) cannot be found.
     
  2. karmatha

    karmatha

    Joined:
    Aug 25, 2012
    Posts:
    46
    Okay I figured out I can use the API to get the files using the `/buckets/{bucketid}/entry_by_path/` route.

    However, it seems the Unity Content Delivery doesn't use brotli...
     
  3. timtunity3d

    timtunity3d

    Unity Technologies

    Joined:
    Oct 1, 2015
    Posts:
    61
    Glad you figured out the paths issue. Is there are an error you're getting around compression? It seems like that should be handled at the browser level.
     
unityunity