docs.unity3d.com
    Show / Hide Table of Contents

    Class AwaitableTextureDownload

    Default ITextureDownload implementation that loads texture URIs via UnityWebRequest.

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

    Constructors

    AwaitableTextureDownload()

    Parameter-less constructor, required for inheritance.

    Declaration
    protected AwaitableTextureDownload()

    AwaitableTextureDownload(Uri, Boolean)

    Default constructor.

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

    Texture URI to request

    Boolean 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
    Implements
    ITextureDownload.Texture

    Methods

    CreateRequest(Uri, Boolean)

    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

    Boolean nonReadable

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

    Returns
    Type Description
    UnityWebRequest

    UnityWebRequest used for sending the request

    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