logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IUnityStageRuntime

    Unity-layer intention interface for the hybrid stage runtime. Exposes Unity-specific operations that are NOT on IStageService (prefab instantiation, spawn resolver, wave set, rail path building). Allows the composition root to wire stage↔wave without casting to concrete types.

    Namespace: Serenity.Stage.Infrastructure.Interfaces
    Assembly: Serenity.UnityStage.Infrastructure.dll
    Syntax
    public interface IUnityStageRuntime

    Properties

    SpawnPointResolver

    The spawn point resolver extracted from the instantiated prefab, or null.

    Declaration
    ISpawnPointResolver SpawnPointResolver { get; }
    Property Value
    Type Description
    ISpawnPointResolver

    StageRoot

    The stage root extracted from the instantiated prefab, or null.

    Declaration
    IStageRoot StageRoot { get; }
    Property Value
    Type Description
    IStageRoot

    Methods

    InstantiateStagePrefab(GameObject)

    Instantiates the given stage prefab and extracts authoring components (IStageRoot, IRailPathAuthoring, ISpawnPointResolver).

    Declaration
    GameObject InstantiateStagePrefab(GameObject stagePrefab)
    Parameters
    Type Name Description
    GameObject stagePrefab

    The stage prefab to instantiate.

    Returns
    Type Description
    GameObject

    The instantiated stage GameObject, or null if the prefab is null.

    StartStage(StageId)

    Starts the stage with the given identity.

    Declaration
    void StartStage(StageId stageId)
    Parameters
    Type Name Description
    StageId stageId

    The stage identity.

    In this article
    © 2026 Serenity. All Rights Reserved