logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Enum LeaderboardBackgroundSlicing

    How a CUSTOM background's sprite renders. Mirrors the Theme Builder's own sprite-slot slicing options, minus Filled — a background authored with fillAmount 1 is indistinguishable from SIMPLE and this model authors no fillAmount.

    Namespace: Serenity.Leaderboard.Infrastructure.Settings
    Assembly: Serenity.UnityLeaderboard.Infrastructure.dll
    Syntax
    public enum LeaderboardBackgroundSlicing
    Remarks

    Append-only: Unity serializes enums by ordinal, so a member inserted anywhere but the end would renumber the ones after it and silently misplace every leaderboard view already authored in a consumer's project.

    Fields

    Name Description
    KEEP_SPRITE

    Leaves Image.type untouched — whatever the sprite or theme already authored.

    NINE_SLICE

    Image.Type.Sliced with borders on all four sides.

    SIMPLE

    Image.Type.Simple: the sprite stretches to fill its rect, no borders.

    THREE_SLICE_HORIZONTAL

    Image.Type.Sliced with borders only on the left/right (horizontal stretch) axis.

    THREE_SLICE_VERTICAL

    Image.Type.Sliced with borders only on the top/bottom (vertical stretch) axis.

    TILED

    Image.Type.Tiled: the sprite repeats to fill its rect.

    In this article
    © 2026 Serenity. All Rights Reserved