Class BaseHostingService | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class BaseHostingService

    Inheritance
    System.Object
    BaseHostingService
    HttpHostingService
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEditor.AddressableAssets
    Syntax
    public abstract class BaseHostingService : IHostingService

    Properties

    DescriptiveName

    Set by the HostingServicesManager, primarily used to disambiguate multiple instances of the same service in the GUI.

    Declaration
    public virtual string DescriptiveName { get; set; }
    Property Value
    Type Description
    System.String
    Implements
    IHostingService.DescriptiveName

    HostingServiceContentRoots

    Declaration
    public abstract List<string> HostingServiceContentRoots { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.String>
    Implements
    IHostingService.HostingServiceContentRoots

    InstanceId

    uniquely identifies this service within the scope of the HostingServicesManager

    Declaration
    public virtual int InstanceId { get; set; }
    Property Value
    Type Description
    System.Int32
    Implements
    IHostingService.InstanceId

    IsHostingServiceRunning

    Declaration
    public abstract bool IsHostingServiceRunning { get; }
    Property Value
    Type Description
    System.Boolean
    Implements
    IHostingService.IsHostingServiceRunning

    Logger

    Declaration
    public ILogger Logger { get; set; }
    Property Value
    Type Description
    ILogger
    Implements
    IHostingService.Logger

    ProfileVariables

    Declaration
    public abstract Dictionary<string, string> ProfileVariables { get; }
    Property Value
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.String>
    Implements
    IHostingService.ProfileVariables

    Methods

    DisambiguateProfileVar(String)

    Declaration
    protected virtual string DisambiguateProfileVar(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.String

    EvaluateProfileString(String)

    Expand special variables from Addressable profiles

    Declaration
    public virtual string EvaluateProfileString(string key)
    Parameters
    Type Name Description
    System.String key

    Key name to match

    Returns
    Type Description
    System.String

    replacement string value for key, or null if no match

    Implements
    IHostingService.EvaluateProfileString(String)

    Log(String, Object[])

    Declaration
    protected void Log(string format, params object[] args)
    Parameters
    Type Name Description
    System.String format
    System.Object[] args

    LogError(String, Object[])

    Declaration
    protected void LogError(string format, params object[] args)
    Parameters
    Type Name Description
    System.String format
    System.Object[] args

    LogFormat(LogType, String, Object[])

    Declaration
    protected void LogFormat(LogType logType, string format, object[] args)
    Parameters
    Type Name Description
    LogType logType
    System.String format
    System.Object[] args

    LogWarning(String, Object[])

    Declaration
    protected void LogWarning(string format, params object[] args)
    Parameters
    Type Name Description
    System.String format
    System.Object[] args

    OnAfterDeserialize(KeyDataStore)

    Called immediatley following a domain reload by the HostingServicesManager, for restoring state information after the service is recreated.

    Declaration
    public virtual void OnAfterDeserialize(KeyDataStore dataStore)
    Parameters
    Type Name Description
    KeyDataStore dataStore

    A key/value pair data store for use in restoring state information

    Implements
    IHostingService.OnAfterDeserialize(KeyDataStore)

    OnBeforeSerialize(KeyDataStore)

    Called by the HostingServicesManager before a domain reload, giving the hosting service an opportunity to persist state information.

    Declaration
    public virtual void OnBeforeSerialize(KeyDataStore dataStore)
    Parameters
    Type Name Description
    KeyDataStore dataStore

    A key/value pair data store for use in persisting state information

    Implements
    IHostingService.OnBeforeSerialize(KeyDataStore)

    OnGUI()

    Declaration
    public abstract void OnGUI()
    Implements
    IHostingService.OnGUI()

    StartHostingService()

    Declaration
    public abstract void StartHostingService()
    Implements
    IHostingService.StartHostingService()

    StopHostingService()

    Declaration
    public abstract void StopHostingService()
    Implements
    IHostingService.StopHostingService()
    Back to top
    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