Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. On February 28th the Feedback website will shut down and be redirected to the Unity forums. See the full post for more information.
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Unity 2018.3 is now released.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Load assets from server using a Shared Access Signature

Discussion in 'Addressables' started by pablothedolphin, Feb 5, 2019.

  1. pablothedolphin


    Oct 20, 2016
    I'm storing my addressable assets on a cloud file storage service and would like to secure assets from direct get requests like simply pasting the URI in the browser by generating a Shared Access Signature (SAS) that lives for a limited time and appends to the end of the URI for secure temporary access.

    The addressables api supposedly just calls the UnityWebRequest api under the hood when downloading assets and handling dependencies. So I tried looking in the source code to see if I could edit it and simply make a new overload for the Load function which would append a provided string to all web requests.

    As luck would have it, it wasn't that easy and I didn't find any code that looked like it was making any kind of web request to edit.

    How can I go about making this custom change? And are there plans for the api to include an overload that could append a token at the end of all requests?