Class LeaderboardsSettingsProvider
Inherited Members
Namespace: Unity.Services.Leaderboards.Settings
Assembly: Unity.Services.Leaderboards.Editor.dll
Syntax
public class LeaderboardsSettingsProvider : EditorGameServiceSettingsProvider
Constructors
LeaderboardsSettingsProvider(SettingsScope)
Declaration
public LeaderboardsSettingsProvider(SettingsScope scopes)
Parameters
Type | Name | Description |
---|---|---|
SettingsScope | scopes |
Properties
Description
Description of the service that will be displayed in the Project Settings
Declaration
protected override string Description { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
EditorGameService
Editor game service for these project settings
Declaration
protected override IEditorGameService EditorGameService { get; }
Property Value
Type | Description |
---|---|
IEditorGameService |
Overrides
Title
Title of the service that will be displayed in the Project Settings
Declaration
protected override string Title { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
CreateSettingsProvider()
Declaration
[SettingsProvider]
public static SettingsProvider CreateSettingsProvider()
Returns
Type | Description |
---|---|
SettingsProvider |
GenerateServiceDetailUI()
Builds and return the Services specific UI as a Visual Element
Declaration
protected override VisualElement GenerateServiceDetailUI()
Returns
Type | Description |
---|---|
VisualElement | Return the parent node for this settings' detail UI. |
Overrides
OnActivate(string, VisualElement)
Use this function to implement a handler for when the user clicks on the Settings in the Settings window. You can fetch a settings Asset or set up UIElements UI from this function.
Declaration
public override void OnActivate(string searchContext, VisualElement rootElement)
Parameters
Type | Name | Description |
---|---|---|
string | searchContext | Search context in the search box on the Settings window. |
VisualElement | rootElement | Root of the UIElements tree. If you add to this root, the SettingsProvider uses UIElements instead of calling SettingsProvider.OnGUI to build the UI. If you do not add to this VisualElement, then you must use the IMGUI to build the UI. |