Method CloudLoadTextureAsync
CloudLoadTextureAsync(string, bool, LoadTextureCallback, ProgressCallback, int)
Load a texture asynchronously from cloud storage
Declaration
RequestHandle CloudLoadTextureAsync(string key, bool showIssueDialog, LoadTextureCallback callback, ProgressCallback progress = null, int timeout = 30)
Parameters
Type | Name | Description |
---|---|---|
string | key | String that uniquely identifies this instance of the type. |
bool | showIssueDialog | Whether to show issue dialogs if the request fails |
LoadTextureCallback | callback | A callback which returns whether the operation was successful, as well as the response payload if it was. If the operation failed, the byte array will contain the error string |
ProgressCallback | progress | Called every frame while the request is in progress with two 0-1 values indicating upload and download progress, respectively |
int | timeout | The timeout duration (in seconds) for this request |
Returns
Type | Description |
---|---|
RequestHandle | A handle to the request which can be used to cancel it |