• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • Globals

    Scene

    Inherits from:

    The 'Scene' class in the scene or 'game area'. It manages events related to player interactions with the scene and allows you to section and differentiate portions of your world into smaller chunks.

    Properties

    PlayerJoined

    ClientAndServer
    ReadOnly

    An event triggered when a player joins the scene.

    PlayerLeft

    ClientAndServer
    ReadOnly

    An event triggered when a player leaves the scene.

    id

    number
    ClientAndServer
    ReadOnly

    The unique identifier of the scene.

    mainCamera

    ClientOnly
    ReadOnly

    The main camera associated with the scene.

    name

    string
    ClientAndServer
    ReadOnly

    playerCount

    number
    ClientAndServer
    ReadOnly

    players

    ClientAndServer
    ReadOnly

    Methods

    Returns

    void

    Instantiate

    ServerOnly

    Parameters

    prefab
    position
    rotation
    owner

    Returns

    MarkLoaded

    ClientOnly

    Returns

    void

    Updated 12 days ago

    PocketWorlds Icon

    © 2025 Pocket Worlds. All rights reserved.