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 |