logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityHudLabelRepresentation

    A standalone, translatable piece of text that reads no value — a heading over the ammo block, a "WAVE" tag beside a counter.

    Inheritance
    object
    UnityHudRepresentation
    UnityHudLabelRepresentation
    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 UnityHudLabelRepresentation : UnityHudRepresentation, IHudRepresentation
    Remarks

    This representation draws nothing of its own, on purpose: the element's caption already is a translatable text with the theme's lettering, so the label kind simply lets an element exist as caption alone. A text field of its own here would be a second copy of that machinery — same rendering, same translation flag — that could drift from the first.

    The text goes in the element's Caption, and Translate caption makes it a localization key.

    Constructors

    UnityHudLabelRepresentation()

    Declaration
    public UnityHudLabelRepresentation()

    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