docs.unity3d.com
    Show / Hide Table of Contents

    Interface IHostingService

    IHostingService implementations serve Addressable content from the Unity Editor to players running locally or on devices with network access to the Editor.

    Namespace: UnityEditor.AddressableAssets.HostingServices
    Syntax
    public interface IHostingService

    Properties

    Name Description
    DescriptiveName

    Set by the HostingServicesManager, primarily used to disambiguate multiple instances of the same service in the GUI.

    HostingServiceContentRoots

    Get the list of root directories being served by this hosting service

    InstanceId

    uniquely identifies this service within the scope of the HostingServicesManager

    IsHostingServiceRunning

    Get a boolean that indicates if this hosting service is running

    Logger

    The ILogger instance to use for debug log output

    ProfileVariables

    Get a map of all profile variables and their current values

    Methods

    Name Description
    EvaluateProfileString(String)

    Expand special variables from Addressable profiles

    OnAfterDeserialize(KeyDataStore)

    Called immediatley following a domain reload by the HostingServicesManager, for restoring state information after the service is recreated.

    OnBeforeSerialize(KeyDataStore)

    Called by the HostingServicesManager before a domain reload, giving the hosting service an opportunity to persist state information.

    OnGUI()

    Draw configuration GUI elements

    StartHostingService()

    Start the hosting service

    StopHostingService()

    Stop the hosting service

    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