logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class HudRepeatedSpriteSettings

    The drawing options a repeated-sprite representation hands to its renderer, so the stack and segmented representations can configure the same renderer differently.

    Inheritance
    object
    HudRepeatedSpriteSettings
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.GameUi.Infrastructure.Representations
    Assembly: Serenity.UnityGameUi.Infrastructure.dll
    Syntax
    public sealed class HudRepeatedSpriteSettings

    Constructors

    HudRepeatedSpriteSettings()

    Declaration
    public HudRepeatedSpriteSettings()

    Properties

    CollapsePrefix

    Text placed before the collapsed count.

    Declaration
    public string CollapsePrefix { get; set; }
    Property Value
    Type Description
    string

    CollapseThreshold

    Quantity above which the row collapses to one sprite plus a count. Zero disables collapsing.

    Declaration
    public int CollapseThreshold { get; set; }
    Property Value
    Type Description
    int

    EmptyColor

    Tint applied to a spent slot.

    Declaration
    public Color EmptyColor { get; set; }
    Property Value
    Type Description
    Color

    EmptySprite

    Sprite drawn for a spent slot; falls back to the filled sprite when unset.

    Declaration
    public Sprite EmptySprite { get; set; }
    Property Value
    Type Description
    Sprite

    FilledColor

    Tint applied to a filled slot.

    Declaration
    public Color FilledColor { get; set; }
    Property Value
    Type Description
    Color

    FilledSprite

    Sprite drawn for a filled slot.

    Declaration
    public Sprite FilledSprite { get; set; }
    Property Value
    Type Description
    Sprite

    ItemSize

    Size of one slot, in reference pixels.

    Declaration
    public Vector2 ItemSize { get; set; }
    Property Value
    Type Description
    Vector2

    PreserveAspect

    Whether a slot's sprite keeps its own proportions inside the item size instead of stretching to fill it. Off by default: the authored size is the authority, deformation and all.

    Declaration
    public bool PreserveAspect { get; set; }
    Property Value
    Type Description
    bool

    ShowEmptySlots

    Whether the spent slots stay visible instead of turning invisible in place.

    Declaration
    public bool ShowEmptySlots { get; set; }
    Property Value
    Type Description
    bool
    In this article
    © 2026 Serenity. All Rights Reserved