docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LocalPersistence

    This saves data locally onto the user's device.

    Inheritance
    object
    BaseDataPersistence
    LocalPersistence
    Implements
    IDataPersistence
    Inherited Members
    BaseDataPersistence.serializer
    Namespace: UnityEngine.GameFoundation.DataPersistence
    Assembly: solution.dll
    Syntax
    public class LocalPersistence : BaseDataPersistence, IDataPersistence

    Constructors

    Name Description
    LocalPersistence(string, IDataSerializer)

    Fields

    Name Description
    kBackupSuffix

    Suffix used for the backup save file.

    Properties

    Name Description
    filename

    The relative path from persistentDataPath to the save file.

    fullpath

    The absolute path to the save file.

    Methods

    Name Description
    Delete(Action, Action<Exception>)

    Asynchronously delete data from the persistence layer.

    Load(Action<GameFoundationSerializableData>, Action<Exception>)

    Asynchronously loads GameFoundation's data from the persistence layer.

    Save(GameFoundationSerializableData, Action, Action<Exception>)

    Asynchronously saves GameFoundation's data onto the persistence layer.

    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)