docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CorePackageRegistry

    A container to store all available IInitializablePackage in the project.

    Inheritance
    object
    CorePackageRegistry
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Core.Internal
    Assembly: Unity.Services.Core.Internal.dll
    Syntax
    public sealed class CorePackageRegistry

    Properties

    Instance

    Get the unique package registry of this project.

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

    Methods

    Register<TPackage>(TPackage)

    Register a package initializer to be executed during services initialization.

    Declaration
    public CoreRegistration Register<TPackage>(TPackage package) where TPackage : IInitializablePackage
    Parameters
    Type Name Description
    TPackage package
    Returns
    Type Description
    CoreRegistration
    Type Parameters
    Name Description
    TPackage
    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)