logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ScoreKeyOptionProvider

    Discovers score metric keys already known to the project, so any module wizard can offer them as a dropdown instead of asking the designer to remember and retype a raw string. Unions two sources: the literal new ScoreKey("...") construction pattern (the only shape the codebase's own IScoreService.Register call sites use) found by scanning C# source, and the declaratively- authored Key rows on every UnityScoreSettings asset in the project. A key registered any other way (e.g. built from a variable, or from a settings asset the scan cannot find) is invisible to this scan, hence the "may be incomplete" framing wherever this list is shown.

    Inheritance
    object
    ScoreKeyOptionProvider
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Score.Infrastructure.Editor.Builder
    Assembly: Serenity.UnityScore.Infrastructure.Editor.dll
    Syntax
    public static class ScoreKeyOptionProvider

    Methods

    DiscoverKeys()

    The distinct, sorted score keys found in the project, cached for the editor session.

    Declaration
    public static IReadOnlyList<string> DiscoverKeys()
    Returns
    Type Description
    IReadOnlyList<string>

    Refresh()

    Drops the cached scan so the next DiscoverKeys() call re-scans the project.

    Declaration
    public static void Refresh()
    In this article
    © 2026 Serenity. All Rights Reserved