logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityHudStackRepresentation

    Draws the value as a sprite repeated once per unit — the bullet row of an arcade shooter — collapsing to a single sprite plus a count once the quantity gets large.

    Inheritance
    object
    UnityHudRepresentation
    UnityHudStackRepresentation
    Implements
    IHudRepresentation
    Inherited Members
    UnityHudRepresentation.FollowsTheme
    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 UnityHudStackRepresentation : UnityHudRepresentation, IHudRepresentation

    Constructors

    UnityHudStackRepresentation()

    Declaration
    public UnityHudStackRepresentation()

    Properties

    HasThemedChrome

    Whether this representation has chrome a theme could contribute to, so the builder only offers the choice where it changes anything.

    Declaration
    public override bool HasThemedChrome { get; }
    Property Value
    Type Description
    bool
    Overrides
    UnityHudRepresentation.HasThemedChrome

    Kind

    Declaration
    public override HudRepresentationKind Kind { get; }
    Property Value
    Type Description
    HudRepresentationKind
    Overrides
    UnityHudRepresentation.Kind

    Methods

    CreateRenderer()

    Creates the object that builds and drives this representation's visuals.

    Declaration
    public override IHudRepresentationRenderer CreateRenderer()
    Returns
    Type Description
    IHudRepresentationRenderer

    A renderer bound to this configuration.

    Overrides
    UnityHudRepresentation.CreateRenderer()

    SetSprites(Sprite, Sprite)

    Sets the sprites. Used by the builder tool.

    Declaration
    public void SetSprites(Sprite filled, Sprite spent)
    Parameters
    Type Name Description
    Sprite filled

    Sprite for a filled slot.

    Sprite spent

    Sprite for a spent slot.

    Implements

    IHudRepresentation
    In this article
    © 2026 Serenity. All Rights Reserved