docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Load

    Load<T>(string, Action<ISerializableData>, Action)

    Asynchronously loads data from the persistence layer. Deserialized data, when loaded, are passed as second argument of the given onFinish Action. The generic param will be provided by the serializer underneath and need to implement ISerializableData

    Declaration
    public override void Load<T>(string identifier, Action<ISerializableData> onLoadCompleted = null, Action onLoadFailed = null) where T : ISerializableData
    Parameters
    Type Name Description
    string identifier

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

    Action<ISerializableData> onLoadCompleted

    Called when the loading is completed with success

    Action onLoadFailed

    Called when the loading failed

    Type Parameters
    Name Description
    T
    Overrides
    BaseDataPersistence.Load<T>(string, Action<ISerializableData>, 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)