Log inGet started
Package

prototype_lifecycle.module

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

prototype_lifecycle

The play-mode invariant for authored player prototypes and EditorOnly entities. In play a PlayerPrototype subtree is the clone source, not a live scene entity: the scene loader spawns it only in edit, and the spawn-on-join flow instantiates a clone per joining user in play. This module deactivates and hides any prototype still live when play begins (the fallback when the loader spawned one) and every EditorOnly entity, so neither is simulated nor rendered in play; in edit both are fully live. Runtime clones are tracked here and despawned on the return to edit.

Location: src/lua/lib/modules/api/engine/prototype_lifecycle.module