docs.unity3d.com
    Show / Hide Table of Contents

    Class UnityServices

    Utility to initialize all Unity services from a single endpoint.

    Inheritance
    Object
    UnityServices
    Namespace: Unity.Services.Core
    Syntax
    public static class UnityServices

    Properties

    State

    Initialization state.

    Declaration
    public static ServicesInitializationState State { get; }
    Property Value
    Type Description
    ServicesInitializationState

    Methods

    InitializeAsync()

    Single entry point to initialize all used services.

    Declaration
    public static Task InitializeAsync()
    Returns
    Type Description
    Task

    Return a handle to the initialization operation.

    Exceptions
    Type Condition
    ServicesInitializationException

    Exception when there's an error during services initialization

    Unity.Services.Core.UnityProjectNotLinkedException

    Exception when the project is not linked to a cloud project id

    InitializeAsync(InitializationOptions)

    Single entry point to initialize all used services.

    Declaration
    public static async Task InitializeAsync(InitializationOptions options)
    Parameters
    Type Name Description
    InitializationOptions options

    The options to customize services initialization.

    Returns
    Type Description
    Task

    Return a handle to the initialization operation.

    Exceptions
    Type Condition
    ServicesInitializationException

    Exception when there's an error during services initialization

    Unity.Services.Core.UnityProjectNotLinkedException

    Exception when the project is not linked to a cloud project id

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023