docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AwaitableTextureDownload

    Default ITextureDownload implementation that loads texture URIs via UnityWebRequest.

    Inheritance
    object
    AwaitableDownload
    AwaitableTextureDownload
    CustomHeaderTextureDownload
    Implements
    ITextureDownload
    IDownload
    IDisposable
    Inherited Members
    AwaitableDownload.m_Request
    AwaitableDownload.m_AsyncOperation
    AwaitableDownload.WaitAsync()
    AwaitableDownload.Success
    AwaitableDownload.Error
    AwaitableDownload.Data
    AwaitableDownload.Text
    AwaitableDownload.IsBinary
    AwaitableDownload.Dispose()
    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 AwaitableTextureDownload : AwaitableDownload, ITextureDownload, IDownload, IDisposable

    Constructors

    AwaitableTextureDownload()

    Parameter-less constructor, required for inheritance.

    Declaration
    protected AwaitableTextureDownload()

    AwaitableTextureDownload(Uri, bool)

    Default constructor.

    Declaration
    public AwaitableTextureDownload(Uri url, bool nonReadable)
    Parameters
    Type Name Description
    Uri url

    Texture URI to request

    bool nonReadable

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

    Properties

    Texture

    Resulting texture

    Declaration
    public Texture2D Texture { get; }
    Property Value
    Type Description
    Texture2D

    Methods

    CreateRequest(Uri, bool)

    Generates the UnityWebRequest used for sending the request.

    Declaration
    protected static UnityWebRequest CreateRequest(Uri url, bool nonReadable)
    Parameters
    Type Name Description
    Uri url

    Texture URI to request

    bool nonReadable

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

    Returns
    Type Description
    UnityWebRequest

    UnityWebRequest used for sending the request

    Implements

    ITextureDownload
    IDownload
    IDisposable
    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)