Class ScoreSettingsCreator
Inheritance
ScoreSettingsCreator
Assembly: Serenity.UnityScore.Infrastructure.Editor.dll
Syntax
public static class ScoreSettingsCreator
Fields
DefaultAssetName
Asset-name fallback for a brand-new settings asset, used both as the field default and
wherever a blank asset name needs sanitizing into a safe file name.
Declaration
public const string DefaultAssetName = "ScoreSettings"
Field Value
DefaultId
Identifier written onto a brand-new settings asset when the caller names none.
Declaration
public const string DefaultId = "Score"
Field Value
DefaultSettingsFolderPath
Default output folder for a brand-new settings asset. Under the GAME's content root, never the
package's: assets created inside Assets/Serenity belong to the package and get swept by
self-cleaning upgrades — user-authored settings must live in user territory, matching the
Assets/Game root the Initialize Serenity wizard and recipe tooling already default to.
Declaration
public const string DefaultSettingsFolderPath = "Assets/Game/Media/Score"
Field Value
Methods
Validates the request, then either updates the existing asset named by
Input.ExistingSettingsAssetPath or creates a brand-new one. On any failure during
creation every mutation is rolled back so the project is left untouched.
Declaration
public static ScoreSettingsCreator.Result Create(ScoreSettingsCreator.Input input)
Parameters
Returns
ResolveSettingsContext(string)
Declaration
public static SettingsAssetAuthoring.SettingsResolution<UnityScoreSettings> ResolveSettingsContext(string explicitSettingsAssetPath = "")
Parameters
| Type |
Name |
Description |
| string |
explicitSettingsAssetPath |
|
Returns
Full validation, re-checked at creation time so Create(Input) is safe to call independently of the window's live validation.
Declaration
public static SerenityCreationValidationResult Validate(ScoreSettingsCreator.Input input)
Parameters
Returns
| Type |
Description |
| SerenityCreationValidationResult |
|
Asset-name-only validation, usable before a folder choice has been made.
Declaration
public static SerenityCreationValidationResult ValidateIdentity(ScoreSettingsCreator.Input input)
Parameters
Returns
| Type |
Description |
| SerenityCreationValidationResult |
|