docs.unity3d.com
    Show / Hide Table of Contents

    Class HostingServicesManager

    Manages the hosting services.

    Inheritance
    Object
    HostingServicesManager
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.AddressableAssets.HostingServices
    Syntax
    [Serializable]
    public class HostingServicesManager : ISerializationCallbackReceiver

    Constructors

    Name Description
    HostingServicesManager()

    Create a new HostingServicesManager

    Properties

    Name Description
    GlobalProfileVariables

    Key/Value pairs valid for profile variable substitution

    HostingServices

    Return an enumerable list of all configured IHostingService objects

    IsInitialized

    Indicates whether or not this HostingServiceManager is initialized

    Logger

    Direct logging output of all managed services

    NextInstanceId

    The id value that will be assigned to the next IHostingService add to the manager.

    RegisteredServiceTypes

    Get an array of all IHostingService types that have been used by the manager, or are known built-in types available for use.

    Methods

    Name Description
    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.

    BatchMode()

    Static method for use in starting up the HostingServicesManager in batch mode. This method without parameters will find and use the default AddressableAssetSettings object.

    BatchMode(AddressableAssetSettings)

    Static method for use in starting up the HostingServicesManager in batch mode.

    Initialize(AddressableAssetSettings)

    Initialize manager with the given AddressableAssetSettings object.

    OnAfterDeserialize()

    Ensure object is ready for serialization, and calls OnBeforeSerialize(KeyDataStore) methods on all managed IHostingService instances

    OnBeforeSerialize()

    Ensure object is ready for serialization, and calls OnBeforeSerialize(KeyDataStore) methods on all managed IHostingService instances

    OnDisable()

    Should be called by parent ScriptableObject instance OnDisable method

    OnEnable()

    Should be called by parent ScriptableObject instance OnEnable method

    RefreshGlobalProfileVariables()

    Refresh values in the global profile variables table.

    RemoveHostingService(IHostingService)

    Stops the given IHostingService, unregisters callbacks, and removes it from management. This function does nothing if the service is not being managed by this HostingServicesManager

    StartAllServices()

    Calls StartHostingService() on all managed IHostingService instances where IsHostingServiceRunning is false

    StopAllServices()

    Calls StopHostingService() on all managed IHostingService instances where IsHostingServiceRunning is true

    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