logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ScoreMetricsTableGui

    The Score metrics table (Key + Kind rows, Add/Remove controls) shared by UnityScoreSettingsEditor and CreateScoreSettingsWindow, so the wizard's metrics section is the exact same UI as the settings inspector, not a lookalike. Extracted from UnityScoreSettingsEditor, which now only supplies the row array to edit and the object to record undo/dirty against — behavior is unchanged, the rendering just no longer lives inline.

    Inheritance
    object
    ScoreMetricsTableGui
    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
    Assembly: Serenity.UnityScore.Infrastructure.Editor.dll
    Syntax
    public static class ScoreMetricsTableGui

    Methods

    Draw(ref ScoreMetricSetting[], Object)

    Draws the metrics table over metrics in place, plus an "Add Metric" button below it. undoTarget is the persisted asset changes are recorded and saved against — the inspector's settings asset, or the wizard's already-loaded existing asset while editing it. Pass null while a wizard is still authoring a not-yet-created asset's scratch rows: the array is still mutated, only without anything to record undo or dirty against.

    Declaration
    public static void Draw(ref ScoreMetricSetting[] metrics, Object undoTarget)
    Parameters
    Type Name Description
    ScoreMetricSetting[] metrics
    Object undoTarget
    In this article
    © 2026 Serenity. All Rights Reserved