logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SettingsRowAssetsBadgeRules

    The Settings step's second per-row badge — independent of SettingsRowBadgeRules's own settings-state badge — reporting how many of a system's shipped assets remain unadopted: Serenity.CreateGame.Infrastructure.Editor.SettingsRowAssetsBadgeRules.NoShippedAssetsText when the system ships none at all, Serenity.CreateGame.Infrastructure.Editor.SettingsRowAssetsBadgeRules.AssetsAdoptedText once every shipped asset has been mirrored into the project, or a count of what is left otherwise. Pure — no AssetDatabase access; InitializeSerenitySettingsStep supplies both counts from its own ShippedSystemAssetCatalog scan.

    Inheritance
    object
    SettingsRowAssetsBadgeRules
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.CreateGame.Infrastructure.Editor
    Assembly: Serenity.UnityCreateGame.Infrastructure.Editor.dll
    Syntax
    public static class SettingsRowAssetsBadgeRules

    Methods

    BadgeColor(int, int)

    The badge color for the same row BadgeText(int, int) describes.

    Declaration
    public static Color BadgeColor(int shippedAssetCount, int remainingShippedAssetCount)
    Parameters
    Type Name Description
    int shippedAssetCount
    int remainingShippedAssetCount
    Returns
    Type Description
    Color

    BadgeText(int, int)

    The badge text for a row whose system ships shippedAssetCount assets, remainingShippedAssetCount of which are not yet adopted.

    Declaration
    public static string BadgeText(int shippedAssetCount, int remainingShippedAssetCount)
    Parameters
    Type Name Description
    int shippedAssetCount
    int remainingShippedAssetCount
    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved