logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityGameHudPresenter

    Unity MonoBehaviour implementation of IGameHudPresenter.

    Inheritance
    object
    UnityGameHudPresenter
    Implements
    IGameHudPresenter
    Namespace: Serenity.GameUi.Infrastructure.Presenters
    Assembly: Serenity.UnityGameUi.Infrastructure.dll
    Syntax
    public class UnityGameHudPresenter : MonoBehaviour, IGameHudPresenter
    Remarks

    Provides a minimal stub that toggles a GameObject's active state to show/hide the HUD. Concrete games should extend or replace this with project-specific rendering logic.

    Constructors

    UnityGameHudPresenter()

    Declaration
    public UnityGameHudPresenter()

    Methods

    HideHud()

    Declaration
    public void HideHud()

    ShowHud()

    Declaration
    public void ShowHud()

    UpdateHud(HudState)

    Declaration
    public void UpdateHud(HudState state)
    Parameters
    Type Name Description
    HudState state

    Implements

    IGameHudPresenter
    In this article
    © 2026 Serenity. All Rights Reserved