docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Save

    Save(IDataPersistence, Action, Action)

    Asynchronously saves data through the persistence layer.

    Declaration
    public static void Save(IDataPersistence dataPersistence, Action onSaveCompleted = null, Action onSaveFailed = null)
    Parameters
    Type Name Description
    IDataPersistence dataPersistence

    The persistence layer used to execute the process

    Action onSaveCompleted

    Called when the saving process is completed with success

    Action onSaveFailed

    Called when the saving process failed

    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)