{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class AwaitableDownload | Unity glTFast | 6.0.1
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AwaitableDownload

    Default IDownload implementation that loads URIs via UnityWebRequest

    Inheritance
    object
    AwaitableDownload
    AwaitableTextureDownload
    CustomHeaderDownload
    Implements
    IDownload
    IDisposable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: GLTFast.Loading
    Assembly: solution.dll
    Syntax
    public class AwaitableDownload : IDownload, IDisposable

    Constructors

    Name Description
    AwaitableDownload()

    Empty constructor

    AwaitableDownload(Uri)

    Creates a download of a URI

    Fields

    Name Description
    m_AsyncOperation

    The download's UnityWebRequestAsyncOperation

    m_Request

    UnityWebRequest that is used for the download

    Properties

    Name Description
    Data

    Downloaded data as byte array

    Error

    If the download failed, error description

    IsBinary

    True if the requested download is a glTF-Binary file. False if it is a regular JSON-based glTF file. Null if the type could not be determined.

    Success

    True if the download finished and was successful

    Text

    Downloaded data as string

    Methods

    Name Description
    Dispose()

    Releases previously allocated resources.

    WaitAsync()

    Waits until the URI request is completed.

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