docs.unity.cn
    Show / Hide Table of Contents

    Class EditorGameServiceRegistry

    Base implementation of the IEditorGameServiceRegistry

    Inheritance
    Object
    EditorGameServiceRegistry
    Namespace: Unity.Services.Core.Editor
    Syntax
    public sealed class EditorGameServiceRegistry : object, IEditorGameServiceRegistry

    Properties

    Instance

    Access to the editor game service registry

    Declaration
    public static EditorGameServiceRegistry Instance { get; }
    Property Value
    Type Description
    EditorGameServiceRegistry

    Methods

    Finalize()

    Destructor of the registry.

    Declaration
    protected void Finalize()

    GetEditorGameService<TIdentifier>()

    Get the instance of a registered IEditorGameService.

    Declaration
    public IEditorGameService GetEditorGameService<TIdentifier>()
        where TIdentifier : struct, IEditorGameServiceIdentifier
    Returns
    Type Description
    IEditorGameService

    Return the instance of the given IEditorGameService type if it has been registered.

    Type Parameters
    Name Description
    TIdentifier

    The type of the identifier for a service

    Implements
    IEditorGameServiceRegistry.GetEditorGameService<T>()
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, April 26, 2022
    Terms of use