logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IHudRepresentationRenderer

    Builds a representation's visuals once, then updates them from the bindings on every tick.

    Namespace: Serenity.GameUi.Infrastructure.Representations
    Assembly: Serenity.UnityGameUi.Infrastructure.dll
    Syntax
    public interface IHudRepresentationRenderer

    Methods

    Apply(CompiledHudBinding, CompiledHudBinding)

    Updates the visuals from the current binding values.

    Declaration
    void Apply(CompiledHudBinding value, CompiledHudBinding capacity)
    Parameters
    Type Name Description
    CompiledHudBinding value

    The element's value binding.

    CompiledHudBinding capacity

    The element's capacity binding, or null when it has none.

    Build(RectTransform, HudRenderResources)

    Builds the visuals under the element's container.

    Declaration
    void Build(RectTransform container, HudRenderResources resources)
    Parameters
    Type Name Description
    RectTransform container

    The element's anchored container.

    HudRenderResources resources

    Theme-derived building blocks.

    Remarks

    The resources carry the theme's HUD style, so chrome is resolved here rather than baked when the renderer is created: a representation does not know which theme it will be drawn under.

    In this article
    © 2026 Serenity. All Rights Reserved