Class HostingServicesManager
Manages the hosting services.
Namespace: UnityEditor.AddressableAssets.HostingServices
Syntax
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 |
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 |
OnEnable() | Should be called by parent |
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 |