docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property WebRequestOverride

    WebRequestOverride

    Delegate that can be used to override the web request options before being sent.

    Declaration
    public static Action<UnityWebRequest> WebRequestOverride { get; set; }
    Property Value
    Type Description
    Action<UnityWebRequest>
    Remarks

    You can assign a function to the Addressables object's WebRequestOverride property to individually modify the UnityWebRequest which is used to download files.

     This can be used to add custom request headers or query strings.
    
     This affects all downloads through Addressables including catalog files and asset bundles.
    
     Assigning this value through the Addressables object will set the value on the <xref href="UnityEngine.ResourceManagement.ResourceManager" data-throw-if-not-resolved="false"></xref>.
    
     For example you could add an Authorization header to authenticate with Cloud Content Delivery's private buckets.</p>
    
      
    
    See Also
    Transforming resource URLs
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)