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
SettingsRowAssetsBadgeRules
Assembly: Serenity.UnityCreateGame.Infrastructure.Editor.dll
Syntax
public static class SettingsRowAssetsBadgeRules
Methods
BadgeColor(int, int)
Declaration
public static Color BadgeColor(int shippedAssetCount, int remainingShippedAssetCount)
Parameters
| Type |
Name |
Description |
| int |
shippedAssetCount |
|
| int |
remainingShippedAssetCount |
|
Returns
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