docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CloudLoadTextureAsync

    CloudLoadTextureAsync(IUsesCloudStorage, string, bool, LoadTextureCallback, ProgressCallback, int)

    Load a texture asynchronously from cloud storage

    Declaration
    public static RequestHandle CloudLoadTextureAsync(this IUsesCloudStorage user, string key, bool showIssueDialog, LoadTextureCallback callback, ProgressCallback progress = null, int timeout = 30)
    Parameters
    Type Name Description
    IUsesCloudStorage user

    The functionality user

    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

    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)