docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Save

    Save(string, ISerializableData, Action, Action)

    Asynchronously saves data onto the persistence layer. When the async save operation is done, onFinish Action get called.

    Declaration
    public override void Save(string identifier, ISerializableData content, Action onSaveCompleted = null, Action onSaveFailed = null)
    Parameters
    Type Name Description
    string identifier

    Identifier of the persistence entry (filename, url, ...)

    ISerializableData content

    Data to persist (need to be serializable)

    Action onSaveCompleted

    Called when the saving is completed with success

    Action onSaveFailed

    Called when the loading failed

    Overrides
    BaseDataPersistence.Save(string, ISerializableData, Action, Action)
    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)