logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.GameCamera.Domain.Services

    Classes

    ActiveCameraSelector

    Pure depth-priority policy for choosing which registered camera should be active when no explicit override or explicit selection is in play. Only candidates that currently draw to the screen are eligible; among those, the highest Depth wins, with ties broken by first-encountered order (stable with respect to the input list). This selector never falls back to an engine-provided "main camera" concept — that fallback, if any, is an Infrastructure concern layered on top of this result.

    SplitScreenLayoutCalculator

    Pure computation of per-player ViewportRect slots from a player count and a requested SplitScreenLayout. All rects use the engine viewport convention where Y=0 is the BOTTOM of the screen and Y increases upward (Unity's Camera.rect normalized space), not the top-left-origin convention common in UI layout.

    In this article
    © 2026 Serenity. All Rights Reserved