docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DefaultDownloadProvider

    Default IDownloadProvider implementation

    Inheritance
    object
    DefaultDownloadProvider
    Implements
    IDownloadProvider
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: GLTFast.Loading
    Assembly: glTFast.dll
    Syntax
    public class DefaultDownloadProvider : IDownloadProvider

    Methods

    Request(Uri)

    Sends a URI request and waits for its completion.

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

    URI to request

    Returns
    Type Description
    Task<IDownload>

    Object representing the request

    RequestTexture(Uri, bool)

    Sends a URI request to load a texture

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

    URI to request

    bool nonReadable

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

    Returns
    Type Description
    Task<ITextureDownload>

    Object representing the request

    Implements

    IDownloadProvider
    In This Article
    Back to top
    Copyright © 2024 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)