Builtin Library
README.md
persist.player_camera
Freezes the live player and camera into a scene's player/camera config. The persist north star is "what you see is what you get": the freeze preserves the exact live state, it never synthesizes.
Player. The live player body is layers.active.players.localPlayer.avatar —
whatever entity is in that slot right now, however it was built (procedurally
spawned, instantiated, hand-assembled). The scene config (player.avatar_<mode>)
is a bundle ref the spawner instantiates on the next load, so the freeze converts
the live avatar entity-tree into that bundle.
Camera. The live camera state is captured into the scene's camera config so the next load restores the same view.