Class AwaitableDownload
Default IDownload implementation that loads URIs via UnityWebRequest
Inherited Members
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. |