logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityHudSpriteRepresentation

    Draws a fixed sprite that reads no value at all — a frame around the ammo counter, a divider, a crest.

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

    The one representation exempt from the value-binding rule (HudRepresentationRules.RequiresValueBinding): decoration has no data, and demanding a binding would force every decorative element to invent some to ignore. It also takes nothing from the theme — decoration is game art through and through, so there is no fallback chrome to follow.

    Constructors

    UnityHudSpriteRepresentation()

    Declaration
    public UnityHudSpriteRepresentation()

    Properties

    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()

    Implements

    IHudRepresentation
    In this article
    © 2026 Serenity. All Rights Reserved