docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IProvidesCloudDataStorage

    Defines the API for a Cloud Data Storage Provider This functionality provider is responsible for providing a storage in the cloud for

    Inherited Members
    IFunctionalityProvider.LoadProvider()
    IFunctionalityProvider.ConnectSubscriber(object)
    IFunctionalityProvider.UnloadProvider()
    Namespace: Unity.MARS.Providers
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    [Obsolete("MARS Cloud storage is obsolete")]
    public interface IProvidesCloudDataStorage : IFunctionalityProvider

    Methods

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

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

    Declaration
    [Obsolete("MARS Cloud storage is obsolete")]
    void CloudLoadAsync(string key, Action<bool, long, byte[]> callback, ProgressCallback progress = null)
    Parameters
    Type Name Description
    string key

    string that uniquely identifies this instance of the type.

    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

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

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

    Declaration
    [Obsolete("MARS Cloud storage is obsolete")]
    void CloudLoadAsync(string key, Action<bool, long, string> callback, ProgressCallback progress = null)
    Parameters
    Type Name Description
    string key

    string that uniquely identifies this instance of the type.

    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

    CloudLoadTextureAsync(string, LoadTextureCallback, ProgressCallback)

    Load a texture asynchronously from cloud storage

    Declaration
    [Obsolete("MARS Cloud storage is obsolete")]
    void CloudLoadTextureAsync(string key, LoadTextureCallback callback, ProgressCallback progress = null)
    Parameters
    Type Name Description
    string key

    String that uniquely identifies this instance of the type.

    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

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

    Save to the cloud asynchronously data in a byte array with a specified key

    Declaration
    [Obsolete("MARS Cloud storage is obsolete")]
    void CloudSaveAsync(string key, byte[] bytesObject, Action<bool, long, string> callback = null, ProgressCallback progress = null)
    Parameters
    Type Name Description
    string key

    string that uniquely identifies this instance of the type.

    byte[] bytesObject

    Bytes array of the object being saved

    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

    CloudSaveAsync(string, string, Action<bool, long, string>, ProgressCallback)

    Save to the cloud asynchronously the data of an object of a certain type with a specified key

    Declaration
    [Obsolete("MARS Cloud storage is obsolete")]
    void CloudSaveAsync(string key, string serializedObject, Action<bool, long, string> callback = null, ProgressCallback progress = null)
    Parameters
    Type Name Description
    string key

    string that uniquely identifies this instance of the type.

    string serializedObject

    string serialization of the object being saved.

    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

    GetAPIKey()

    Get the current authentication token

    Declaration
    [Obsolete("MARS Cloud storage is obsolete")]
    string GetAPIKey()
    Returns
    Type Description
    string

    String that uniquely identifies this instance of the type.

    GetProjectIdentifier()

    Set the current project identifier

    Declaration
    [Obsolete("MARS Cloud storage is obsolete")]
    string GetProjectIdentifier()
    Returns
    Type Description
    string

    String that uniquely identifies this instance of the type.

    IsConnected()

    Get the current state of the connection to the cloud storage

    Declaration
    [Obsolete("MARS Cloud storage is obsolete")]
    bool IsConnected()
    Returns
    Type Description
    bool

    True if the Cloud Storage is connected to this client, false otherwise.

    LoadLocalTextureAsync(string, LoadTextureCallback, ProgressCallback)

    Load a texture asynchronously from local storage

    Declaration
    [Obsolete("MARS Cloud storage is obsolete")]
    void LoadLocalTextureAsync(string path, LoadTextureCallback callback, ProgressCallback progress = null)
    Parameters
    Type Name Description
    string path

    Path to the texture.

    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

    SetAPIKey(string)

    Set the current authentication token

    Declaration
    [Obsolete("MARS Cloud storage is obsolete")]
    void SetAPIKey(string key)
    Parameters
    Type Name Description
    string key

    String that uniquely identifies this instance of the type.

    SetProjectIdentifier(string)

    Set the current project identifier

    Declaration
    [Obsolete("MARS Cloud storage is obsolete")]
    void SetProjectIdentifier(string id)
    Parameters
    Type Name Description
    string id

    String that uniquely identifies this instance of the type.

    In This Article
    Back to top
    Copyright © 2025 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)