docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Initialize

    Initialize(IDataPersistence, Action, Action)

    Initialize the GameFoundation . It need a persistence object to be passed as argument to set the default persistence layer If the initialization fails, onInitializeFailed will be called with an exception.

    Declaration
    public static void Initialize(IDataPersistence dataPersistence = null, Action onInitializeCompleted = null, Action onInitializeFailed = null)
    Parameters
    Type Name Description
    IDataPersistence dataPersistence

    The persistence layer of the Game Foundation. Required and cached for future execution

    Action onInitializeCompleted

    Called when the initialization process is completed with success

    Action onInitializeFailed

    Called when the initialization 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)