Class EditorGameServiceSettingsProvider
Base class to extend for an external service settings provider to become an editor game service settings provider
Inherited Members
Namespace: Unity.Services.Core.Editor
Assembly: Unity.Services.Core.Editor.dll
Syntax
public abstract class EditorGameServiceSettingsProvider : SettingsProvider
Constructors
EditorGameServiceSettingsProvider(string, SettingsScope, IEnumerable<string>)
Initializes a new instance of the Editor
Declaration
protected EditorGameServiceSettingsProvider(string path, SettingsScope scopes, IEnumerable<string> keywords = null)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path to the settings.
You SHOULD use Generate |
Settings |
scopes | The scope of the provided settings. |
IEnumerable<string> | keywords | Set of keywords for search purposes. |
Properties
Description
Description of the service that will be displayed in the Project Settings
Declaration
protected abstract string Description { get; }
Property Value
Type | Description |
---|---|
string |
EditorGameService
Editor game service for these project settings
Declaration
protected abstract IEditorGameService EditorGameService { get; }
Property Value
Type | Description |
---|---|
IEditor |
Title
Title of the service that will be displayed in the Project Settings
Declaration
protected abstract string Title { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GenerateProjectSettingsPath(string)
Use this to standardize Service Project Settings path: usage example: var provider = new MyCloudServiceSettings(GenerateProjectSettingsPath("My Cloud Service"), SettingsScope.Project);
Declaration
protected static string GenerateProjectSettingsPath(string serviceName)
Parameters
Type | Name | Description |
---|---|---|
string | serviceName | Name of the service to use in path |
Returns
Type | Description |
---|---|
string | The path to pass as argument to SettingsProvider |
GenerateServiceDetailUI()
Builds and return the Services specific UI as a Visual Element
Declaration
protected abstract VisualElement GenerateServiceDetailUI()
Returns
Type | Description |
---|---|
Visual |
Return the parent node for this settings' detail UI. |
GenerateUnsupportedDetailUI()
The UI to show when the editor API does not support the Services SDK Core package
Declaration
protected virtual VisualElement GenerateUnsupportedDetailUI()
Returns
Type | Description |
---|---|
Visual |
Custom UI to show when unsupported |