docs.unity3d.com
    Show / Hide Table of Contents

    Class CustomHeaderDownloadProvider

    DownloadProvider that sends HTTP request with custom header entries

    Inheritance
    Object
    CustomHeaderDownloadProvider
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: GLTFast.Loading
    Syntax
    public class CustomHeaderDownloadProvider : IDownloadProvider

    Constructors

    CustomHeaderDownloadProvider(HttpHeader[])

    Creates a new CustomHeaderDownloadProvider with a given set of HTTP request header entries

    Declaration
    public CustomHeaderDownloadProvider(HttpHeader[] headers)
    Parameters
    Type Name Description
    HttpHeader[] headers

    HTTP request header entries to send

    Methods

    Request(Uri)

    Sends a URI request

    Declaration
    public async Task<IDownload> Request(Uri url)
    Parameters
    Type Name Description
    Uri url

    URI to request

    Returns
    Type Description
    Task<IDownload>

    Object representing the request

    Implements
    IDownloadProvider.Request(Uri)

    RequestTexture(Uri, Boolean)

    Sends a URI request to load a texture

    Declaration
    public async Task<ITextureDownload> RequestTexture(Uri url, bool nonReadable)
    Parameters
    Type Name Description
    Uri url

    URI to request

    Boolean nonReadable

    If true, resulting texture is not CPU readable (uses less memory)

    Returns
    Type Description
    Task<ITextureDownload>

    Object representing the request

    Implements
    IDownloadProvider.RequestTexture(Uri, Boolean)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023