Interface IHostingService
IHostingService implementations serve Addressable content from the Unity Editor to players running locally or on devices with network access to the Editor.
네임스페이스: UnityEditor.AddressableAssets.HostingServices
어셈블리: solution.dll
구문
public interface IHostingService
프로퍼티
이름 | 설명 |
---|---|
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 |
메서드
이름 | 설명 |
---|---|
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 |