logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SpawnPointRegistry

    Collects all SpawnPoint components under this GameObject's hierarchy and exposes them through the ISpawnPointResolver Domain interface. Place on the stage prefab root alongside StageRoot.

    Inheritance
    object
    SpawnPointRegistry
    Implements
    ISpawnPointResolver
    Namespace: Serenity.Stage.Infrastructure.Authoring
    Assembly: Serenity.UnityStage.Infrastructure.dll
    Syntax
    public class SpawnPointRegistry : MonoBehaviour, ISpawnPointResolver

    Constructors

    SpawnPointRegistry()

    Declaration
    public SpawnPointRegistry()

    Methods

    Build()

    Builds or rebuilds the internal lookup dictionary by scanning all SpawnPoint components in this hierarchy (including inactive). Call once after the stage prefab is instantiated.

    Declaration
    public void Build()

    Resolve(SpawnPointId)

    Declaration
    public ISpawnPoint Resolve(SpawnPointId id)
    Parameters
    Type Name Description
    SpawnPointId id
    Returns
    Type Description
    ISpawnPoint

    TryResolve(SpawnPointId, out ISpawnPoint)

    Declaration
    public bool TryResolve(SpawnPointId id, out ISpawnPoint point)
    Parameters
    Type Name Description
    SpawnPointId id
    ISpawnPoint point
    Returns
    Type Description
    bool

    Implements

    ISpawnPointResolver
    In this article
    © 2026 Serenity. All Rights Reserved