Class HostingServicesManager
Manages the hosting services.
상속된 멤버
네임스페이스: UnityEditor.AddressableAssets.HostingServices
어셈블리: solution.dll
구문
[Serializable]
public class HostingServicesManager : ISerializationCallbackReceiver
생성자
이름 | 설명 |
---|---|
HostingServicesManager() | Create a new HostingServicesManager |
프로퍼티
이름 | 설명 |
---|---|
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. |
메서드
이름 | 설명 |
---|---|
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 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 |