logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityGameScreenPresenter

    Unity MonoBehaviour implementation of IGameScreenPresenter.

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

    Provides a minimal stub that maps screen ids to root GameObjects, activating the root matching the active screen and deactivating the rest. Concrete games should extend or replace this with project-specific rendering logic.

    Constructors

    UnityGameScreenPresenter()

    Declaration
    public UnityGameScreenPresenter()

    Methods

    ShowScreen(UiScreenId, UiScreenId)

    Declaration
    public void ShowScreen(UiScreenId screenId, UiScreenId previousScreenId)
    Parameters
    Type Name Description
    UiScreenId screenId
    UiScreenId previousScreenId

    Implements

    IGameScreenPresenter
    In this article
    © 2026 Serenity. All Rights Reserved