Class UiTheme

Namespace
SurvivorsMaker.Presentation
Assembly
SurvivorsMaker.Presentation.dll

The whole UI look in one place. Defaults are a flat dark style drawn without art: rounded panels and buttons generated at runtime (see UiSprites). Assign sprites to use your own frames. Sizes are in reference pixels (1920 × 1080).

public sealed class UiTheme
Inheritance
UiTheme
Inherited Members

Constructors

UiTheme()

public UiTheme()

Fields

Accent

Accent colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Accent colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
[Header("Buttons")]
public Color Accent

Field Value

Color

AccentHover

Accent Hover colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Accent Hover colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color AccentHover

Field Value

Color

AccentPressed

Accent Pressed colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Accent Pressed colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color AccentPressed

Field Value

Color

AccentText

Accent Text colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Accent Text colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color AccentText

Field Value

Color

Background

Full-screen shade behind modal panels.

[Tooltip("Background colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
[Header("Surfaces: screen < panel < card")]
public Color Background

Field Value

Color

BannerHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float BannerHeight

Field Value

float

BannerWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float BannerWidth

Field Value

float

BarCornerRadius

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float BarCornerRadius

Field Value

float

BarHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float BarHeight

Field Value

float

BodySize

TextMeshPro font sizes in reference UI pixels; positive.

[Tooltip("TextMeshPro font sizes in reference UI pixels; positive.")]
[Header("Type")]
public int BodySize

Field Value

int

Border

Border colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Border colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color Border

Field Value

Color

BorderWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float BorderWidth

Field Value

float

BossBarHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float BossBarHeight

Field Value

float

BossBarWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float BossBarWidth

Field Value

float

BossChipDelay

Boss chip delay/fade/hold in seconds; chip speed is normalized bar units per second.

[Tooltip("Boss chip delay/fade/hold in seconds; chip speed is normalized bar units per second.")]
public float BossChipDelay

Field Value

float

BossChipSpeed

Boss chip delay/fade/hold in seconds; chip speed is normalized bar units per second.

[Tooltip("Boss chip delay/fade/hold in seconds; chip speed is normalized bar units per second.")]
public float BossChipSpeed

Field Value

float

BossDefeatHoldSeconds

Boss chip delay/fade/hold in seconds; chip speed is normalized bar units per second.

[Tooltip("Boss chip delay/fade/hold in seconds; chip speed is normalized bar units per second.")]
public float BossDefeatHoldSeconds

Field Value

float

BossFadeSeconds

Boss chip delay/fade/hold in seconds; chip speed is normalized bar units per second.

[Tooltip("Boss chip delay/fade/hold in seconds; chip speed is normalized bar units per second.")]
public float BossFadeSeconds

Field Value

float

BossHealth

Boss Health colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Boss Health colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color BossHealth

Field Value

Color

BossHealthChip

Boss Health Chip colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Boss Health Chip colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color BossHealthChip

Field Value

Color

BossPanelHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float BossPanelHeight

Field Value

float

BossPipSize

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float BossPipSize

Field Value

float

BossTickWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float BossTickWidth

Field Value

float

BossTopGap

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float BossTopGap

Field Value

float

ButtonCornerRadius

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float ButtonCornerRadius

Field Value

float

ButtonFadeSeconds

Button state colour transition duration in seconds; 0 = immediate.

[Tooltip("Button state colour transition duration in seconds; 0 = immediate.")]
public float ButtonFadeSeconds

Field Value

float

ButtonHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float ButtonHeight

Field Value

float

ButtonHoverSprite

Optional button hover sprite; unassigned uses generated rounded art.

[Tooltip("Optional button hover sprite; unassigned uses generated rounded art.")]
public Sprite ButtonHoverSprite

Field Value

Sprite

ButtonNormalSprite

Optional button normal sprite; unassigned uses generated rounded art.

[Tooltip("Optional button normal sprite; unassigned uses generated rounded art.")]
public Sprite ButtonNormalSprite

Field Value

Sprite

ButtonPadding

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float ButtonPadding

Field Value

float

ButtonPressedSprite

Optional button pressed sprite; unassigned uses generated rounded art.

[Tooltip("Optional button pressed sprite; unassigned uses generated rounded art.")]
public Sprite ButtonPressedSprite

Field Value

Sprite

ButtonTextSize

TextMeshPro font sizes in reference UI pixels; positive.

[Tooltip("TextMeshPro font sizes in reference UI pixels; positive.")]
[Header("Type")]
public int ButtonTextSize

Field Value

int

CardDetailHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float CardDetailHeight

Field Value

float

CardHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float CardHeight

Field Value

float

CardPadding

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public int CardPadding

Field Value

int

CardSpacing

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float CardSpacing

Field Value

float

CardTitleHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float CardTitleHeight

Field Value

float

ChoiceCardMinHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float ChoiceCardMinHeight

Field Value

float

ChoiceCardWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float ChoiceCardWidth

Field Value

float

CompactIconSize

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float CompactIconSize

Field Value

float

CompactTitleHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float CompactTitleHeight

Field Value

float

CornerRadius

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float CornerRadius

Field Value

float

Danger

Danger colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Danger colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color Danger

Field Value

Color

DangerBorder

Danger Border colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Danger Border colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color DangerBorder

Field Value

Color

DangerHover

Danger Hover colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Danger Hover colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color DangerHover

Field Value

Color

DangerPressed

Danger Pressed colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Danger Pressed colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color DangerPressed

Field Value

Color

DangerText

Danger Text colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Danger Text colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color DangerText

Field Value

Color

DialogHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float DialogHeight

Field Value

float

DialogWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float DialogWidth

Field Value

float

Disabled

Disabled colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Disabled colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color Disabled

Field Value

Color

DisabledText

Disabled Text colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Disabled Text colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color DisabledText

Field Value

Color

DisplaySize

TextMeshPro font sizes in reference UI pixels; positive.

[Tooltip("TextMeshPro font sizes in reference UI pixels; positive.")]
[Header("Type")]
public int DisplaySize

Field Value

int

DropdownVisibleRows

Settings value/handle size in reference pixels; dropdown rows is a visible-row count.

[Tooltip("Settings value/handle size in reference pixels; dropdown rows is a visible-row count.")]
public float DropdownVisibleRows

Field Value

float

EdgeArrowBounce

Arrow size/margin/bounce in reference pixels, lifetime in seconds, pulse rate per second.

[Tooltip("Arrow size/margin/bounce in reference pixels, lifetime in seconds, pulse rate per second.")]
public float EdgeArrowBounce

Field Value

float

EdgeArrowMargin

Arrow size/margin/bounce in reference pixels, lifetime in seconds, pulse rate per second.

[Tooltip("Arrow size/margin/bounce in reference pixels, lifetime in seconds, pulse rate per second.")]
public float EdgeArrowMargin

Field Value

float

EdgeArrowPulse

Arrow size/margin/bounce in reference pixels, lifetime in seconds, pulse rate per second.

[Tooltip("Arrow size/margin/bounce in reference pixels, lifetime in seconds, pulse rate per second.")]
public float EdgeArrowPulse

Field Value

float

EdgeArrowSeconds

Arrow size/margin/bounce in reference pixels, lifetime in seconds, pulse rate per second.

[Tooltip("Arrow size/margin/bounce in reference pixels, lifetime in seconds, pulse rate per second.")]
public float EdgeArrowSeconds

Field Value

float

EdgeArrowSize

Arrow size/margin/bounce in reference pixels, lifetime in seconds, pulse rate per second.

[Tooltip("Arrow size/margin/bounce in reference pixels, lifetime in seconds, pulse rate per second.")]
public float EdgeArrowSize

Field Value

float

Experience

Experience colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Experience colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color Experience

Field Value

Color

Focus

Focus colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Focus colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color Focus

Field Value

Color

FocusGap

Gap between a button and its focus ring.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float FocusGap

Field Value

float

FocusWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float FocusWidth

Field Value

float

Font

TextMeshPro font asset; unassigned uses the available default font.

[Tooltip("TextMeshPro font asset; unassigned uses the available default font.")]
public TMP_FontAsset Font

Field Value

TMP_FontAsset

FooterHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float FooterHeight

Field Value

float

Gold

Rewards and elites: unlock popup, trophies, elite toast, currency.

[Tooltip("Gold colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color Gold

Field Value

Color

HeaderHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float HeaderHeight

Field Value

float

HeadingSize

TextMeshPro font sizes in reference UI pixels; positive.

[Tooltip("TextMeshPro font sizes in reference UI pixels; positive.")]
[Header("Type")]
public int HeadingSize

Field Value

int

Health

Health colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Health colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
[Header("Meaning")]
public Color Health

Field Value

Color

HordeBannerHeight

Horde banner height in reference pixels, duration in seconds, Y as normalized screen height.

[Tooltip("Horde banner height in reference pixels, duration in seconds, Y as normalized screen height.")]
public float HordeBannerHeight

Field Value

float

HordeBannerSeconds

Horde banner height in reference pixels, duration in seconds, Y as normalized screen height.

[Tooltip("Horde banner height in reference pixels, duration in seconds, Y as normalized screen height.")]
public float HordeBannerSeconds

Field Value

float

HordeBannerY

Horde banner height in reference pixels, duration in seconds, Y as normalized screen height.

[Tooltip("Horde banner height in reference pixels, duration in seconds, Y as normalized screen height.")]
public float HordeBannerY

Field Value

float

HudBackground

Hud Background colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Hud Background colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color HudBackground

Field Value

Color

HudBadgeWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float HudBadgeWidth

Field Value

float

HudBarHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float HudBarHeight

Field Value

float

HudGap

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float HudGap

Field Value

float

HudHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float HudHeight

Field Value

float

HudPadding

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public int HudPadding

Field Value

int

HudTextHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float HudTextHeight

Field Value

float

HudWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float HudWidth

Field Value

float

IconSize

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float IconSize

Field Value

float

LevelUpPanelHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float LevelUpPanelHeight

Field Value

float

LevelUpPanelWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float LevelUpPanelWidth

Field Value

float

LineSpacing

Extra line height for multi-line labels, in font-size units (TMP line spacing).

[Tooltip("Additional TextMeshPro line spacing in font-size units.")]
public float LineSpacing

Field Value

float

Locked

Locked colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Locked colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color Locked

Field Value

Color

MaxButtonWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float MaxButtonWidth

Field Value

float

MenuCardHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float MenuCardHeight

Field Value

float

MenuHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float MenuHeight

Field Value

float

MenuIconSize

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float MenuIconSize

Field Value

float

MenuWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float MenuWidth

Field Value

float

MinButtonWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float MinButtonWidth

Field Value

float

Muted

Muted colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Muted colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color Muted

Field Value

Color

Padding

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
[Header("Spacing (8 px grid)")]
public int Padding

Field Value

int

Panel

Panel colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Panel colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color Panel

Field Value

Color

PanelHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float PanelHeight

Field Value

float

PanelSprite

Optional panel sprite; unassigned uses generated rounded art.

[Tooltip("Optional panel sprite; unassigned uses generated rounded art.")]
[Header("Optional art (empty = generated rounded shapes)")]
public Sprite PanelSprite

Field Value

Sprite

PanelWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float PanelWidth

Field Value

float

RecordsNumberWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float RecordsNumberWidth

Field Value

float

RecordsRowHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float RecordsRowHeight

Field Value

float

RecordsWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float RecordsWidth

Field Value

float

ReferencePixelsPerUnit

Sprite reference pixels per Unity unit; positive.

[Tooltip("Sprite reference pixels per Unity unit; positive.")]
public float ReferencePixelsPerUnit

Field Value

float

ReferenceResolution

Canvas reference resolution in pixels; both components must be positive.

[Tooltip("Canvas reference resolution in pixels; both components must be positive.")]
[Header("Canvas")]
public Vector2 ReferenceResolution

Field Value

Vector2

ScaleMatch

Canvas match fraction from 0 (width) to 1 (height).

[Tooltip("Canvas match fraction from 0 (width) to 1 (height).")]
public float ScaleMatch

Field Value

float

Secondary

Secondary colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Secondary colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color Secondary

Field Value

Color

SecondaryBorder

Secondary Border colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Secondary Border colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color SecondaryBorder

Field Value

Color

SecondaryHover

Secondary Hover colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Secondary Hover colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color SecondaryHover

Field Value

Color

SecondaryPressed

Secondary Pressed colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Secondary Pressed colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color SecondaryPressed

Field Value

Color

SettingsControlWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float SettingsControlWidth

Field Value

float

SettingsHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float SettingsHeight

Field Value

float

SettingsRowHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float SettingsRowHeight

Field Value

float

SettingsValueWidth

Settings value/handle size in reference pixels; dropdown rows is a visible-row count.

[Tooltip("Settings value/handle size in reference pixels; dropdown rows is a visible-row count.")]
public float SettingsValueWidth

Field Value

float

SettingsWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float SettingsWidth

Field Value

float

SliderHandleSize

Settings value/handle size in reference pixels; dropdown rows is a visible-row count.

[Tooltip("Settings value/handle size in reference pixels; dropdown rows is a visible-row count.")]
public float SliderHandleSize

Field Value

float

SmallSize

TextMeshPro font sizes in reference UI pixels; positive.

[Tooltip("TextMeshPro font sizes in reference UI pixels; positive.")]
[Header("Type")]
public int SmallSize

Field Value

int

Spacing

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float Spacing

Field Value

float

StatColumnWeight

Relative horizontal layout weights for stats and shop stock; positive.

[Tooltip("Relative horizontal layout weights for stats and shop stock; positive.")]
public float StatColumnWeight

Field Value

float

StatsWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float StatsWidth

Field Value

float

StockColumnWeight

Relative horizontal layout weights for stats and shop stock; positive.

[Tooltip("Relative horizontal layout weights for stats and shop stock; positive.")]
public float StockColumnWeight

Field Value

float

Surface

Surface colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Surface colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color Surface

Field Value

Color

Text

Text colour (RGBA); alpha 0 = transparent, 1 = opaque.

[Tooltip("Text colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
[Header("Text")]
public Color Text

Field Value

Color

TierStripeHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float TierStripeHeight

Field Value

float

Tiers

Tier colours by zero-based tier index; missing high tiers use the last colour.

[Tooltip("Tier colours by zero-based tier index; missing high tiers use the last colour.")]
public Color[] Tiers

Field Value

Color[]

TitleSize

TextMeshPro font sizes in reference UI pixels; positive.

[Tooltip("TextMeshPro font sizes in reference UI pixels; positive.")]
[Header("Type")]
public int TitleSize

Field Value

int

ToastFadeSeconds

Toast width/height in reference pixels, lifetime/fade in seconds, pop scale as an added fraction.

[Tooltip("Toast width/height in reference pixels, lifetime/fade in seconds, pop scale as an added fraction.")]
public float ToastFadeSeconds

Field Value

float

ToastHeight

Toast width/height in reference pixels, lifetime/fade in seconds, pop scale as an added fraction.

[Tooltip("Toast width/height in reference pixels, lifetime/fade in seconds, pop scale as an added fraction.")]
public float ToastHeight

Field Value

float

ToastPopScale

Toast width/height in reference pixels, lifetime/fade in seconds, pop scale as an added fraction.

[Tooltip("Toast width/height in reference pixels, lifetime/fade in seconds, pop scale as an added fraction.")]
public float ToastPopScale

Field Value

float

ToastSeconds

Toast width/height in reference pixels, lifetime/fade in seconds, pop scale as an added fraction.

[Tooltip("Toast width/height in reference pixels, lifetime/fade in seconds, pop scale as an added fraction.")]
public float ToastSeconds

Field Value

float

ToastWidth

Toast width/height in reference pixels, lifetime/fade in seconds, pop scale as an added fraction.

[Tooltip("Toast width/height in reference pixels, lifetime/fade in seconds, pop scale as an added fraction.")]
public float ToastWidth

Field Value

float

Track

Empty part of bars.

[Tooltip("Track colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color Track

Field Value

Color

UnlockPanelHeight

Unlock panel/row sizes in reference pixels; reveal interval in seconds.

[Tooltip("Unlock panel/row sizes in reference pixels; reveal interval in seconds.")]
public float UnlockPanelHeight

Field Value

float

UnlockPanelWidth

Unlock panel/row sizes in reference pixels; reveal interval in seconds.

[Tooltip("Unlock panel/row sizes in reference pixels; reveal interval in seconds.")]
public float UnlockPanelWidth

Field Value

float

UnlockRevealSeconds

Unlock panel/row sizes in reference pixels; reveal interval in seconds.

[Tooltip("Unlock panel/row sizes in reference pixels; reveal interval in seconds.")]
public float UnlockRevealSeconds

Field Value

float

UnlockRowHeight

Unlock panel/row sizes in reference pixels; reveal interval in seconds.

[Tooltip("Unlock panel/row sizes in reference pixels; reveal interval in seconds.")]
public float UnlockRowHeight

Field Value

float

Warning

Danger accents: horde banner, edge arrows.

[Tooltip("Warning colour (RGBA); alpha 0 = transparent, 1 = opaque.")]
public Color Warning

Field Value

Color

WeaponCardHeight

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float WeaponCardHeight

Field Value

float

WeaponCardWidth

UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.

[Tooltip("UI layout dimensions in reference pixels; nonnegative. Offsets accept positive and negative values.")]
public float WeaponCardWidth

Field Value

float

WeaponGridColumns

Number of weapon grid columns; positive.

[Tooltip("Number of weapon grid columns; positive.")]
public int WeaponGridColumns

Field Value

int

Properties

BarFill

public Sprite BarFill { get; }

Property Value

Sprite

ButtonBorder

public Sprite ButtonBorder { get; }

Property Value

Sprite

ButtonFill

public Sprite ButtonFill { get; }

Property Value

Sprite

FocusRing

public Sprite FocusRing { get; }

Property Value

Sprite

PanelBorder

public Sprite PanelBorder { get; }

Property Value

Sprite

PanelFill

Panel/card fill: the assigned sprite, else a generated rounded rectangle (play mode only, so prefabs never reference it).

public Sprite PanelFill { get; }

Property Value

Sprite

Strings

public UiStrings Strings { get; }

Property Value

UiStrings

Methods

TierColor(int)

public Color TierColor(int tier)

Parameters

tier int

Returns

Color