docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CloudLoadAsync

    CloudLoadAsync(string, bool, Action<bool, long, string>, ProgressCallback, int)

    Load from the cloud asynchronously the data of an object which was saved with a known key

    Declaration
    RequestHandle CloudLoadAsync(string key, bool showIssueDialog, Action<bool, long, string> 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

    Action<bool, long, string> callback

    A callback which returns whether the operation was successful, as well as the response code and serialized string of the object if it was

    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

    CloudLoadAsync(string, bool, Action<bool, long, byte[]>, ProgressCallback, int)

    Load from the cloud asynchronously the byte array which was saved with a known key

    Declaration
    RequestHandle CloudLoadAsync(string key, bool showIssueDialog, Action<bool, long, byte[]> 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

    Action<bool, long, byte[]> callback

    A callback which returns whether the operation was successful, as well as the response code and byte array 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)