docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CloudSaveFileAsync

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

    Save to the cloud asynchronously data in a file with a specified key

    Declaration
    RequestHandle CloudSaveFileAsync(string key, string path, bool showIssueDialog, Action<bool, long, string> callback = null, ProgressCallback progress = null, int timeout = 30)
    Parameters
    Type Name Description
    string key

    String that uniquely identifies this instance of the type.

    string path

    Path to the file being saved

    bool showIssueDialog

    Whether to show issue dialogs if the request fails

    Action<bool, long, string> callback

    A callback when the asynchronous call is done to show whether it was successful, with the response code and 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)