docs.unity3d.com
    Show / Hide Table of Contents

    Method AddHostingService

    AddHostingService(Type, String)

    Add a new hosting service instance of the given type. The serviceType must implement the IHostingService interface, or an ArgumentException is thrown.

    Declaration
    public IHostingService AddHostingService(Type serviceType, string name)
    Parameters
    Type Name Description
    Type serviceType

    A Type object for the service. Must implement IHostingService

    String name

    A descriptive name for the new service instance.

    Returns
    Type Description
    IHostingService
    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