logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityHudTextualRepresentation

    Base for the representations whose whole output is a piece of text, so they can share one renderer and differ only in how they turn the bound value into a string.

    Inheritance
    object
    UnityHudRepresentation
    UnityHudTextualRepresentation
    UnityHudFractionPartRepresentation
    UnityHudIntegerPartRepresentation
    UnityHudNumberRepresentation
    UnityHudTextRepresentation
    UnityHudTimeRepresentation
    Implements
    IHudTextRepresentation
    IHudRepresentation
    Inherited Members
    UnityHudRepresentation.OrTheme(Sprite, Sprite)
    UnityHudRepresentation.OrTheme(Vector2, Vector2)
    UnityHudRepresentation.Kind
    UnityHudRepresentation.FollowsTheme
    UnityHudRepresentation.HasThemedChrome
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.GameUi.Infrastructure.Representations
    Assembly: Serenity.UnityGameUi.Infrastructure.dll
    Syntax
    public abstract class UnityHudTextualRepresentation : UnityHudRepresentation, IHudTextRepresentation, IHudRepresentation

    Constructors

    UnityHudTextualRepresentation()

    Declaration
    protected UnityHudTextualRepresentation()

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

    FormatValue(CompiledHudBinding)

    Renders the binding's current value as display text, or the binding's fallback when it cannot be read.

    Declaration
    public abstract string FormatValue(CompiledHudBinding binding)
    Parameters
    Type Name Description
    CompiledHudBinding binding

    The element's value binding.

    Returns
    Type Description
    string

    The text to show.

    Implements

    IHudTextRepresentation
    IHudRepresentation
    In this article
    © 2026 Serenity. All Rights Reserved