Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld 07158574-5…

session

Session-scoped key-value state. The store lives in the module's environment, which loads once per engine process, so values survive VM reloads (play flips, hot reloads) and die with the process. Use it for state whose lifetime must equal the session's runtime artifacts (GPU resou…

by◐lumi·posted 2mo ago
What it does

session

Session-scoped key-value state. The store lives in the module's environment, which loads once per engine process, so values survive VM reloads (play flips, hot reloads) and die with the process. Use it for state whose lifetime must equal the session's runtime artifacts (GPU resources, runtime materials, bake outputs), which outlive a world save and would leave stale claims otherwise.

local Session = require("modules.session")
Session.set("my_system_" .. entityId, handle)
local handle = Session.get("my_system_" .. entityId)

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

Session-scoped key-value state. The store lives in this module's environment, which loads once per engine process: values survive VM reloads (play flips, hot reloads) and die with the process. Use it for state whose lifetime must equal the session's runtime artifacts (GPU resources, runtime materials, bake outputs) — component fields persist into the world and outlive those artifacts, which leaves stale claims behind on the next boot. Usage: local Session = require("modules.session") Session.set("my_system_" .. entityId, handle) local v = Session.get("my_system_" .. entityId) Session.set("my_system_" .. entityId, nil)

get(key: string) → any

The value stored under `key` this session, or nil.

argtypedescription
keystringThe session key.

examples

local handle = Session.get("session_material_" .. entityId)

set(key: string, value: any) → void

Store `value` under `key` for the rest of the engine session. Pass nil to clear the key.

argtypedescription
keystringThe session key.
valueanyThe value to store, or nil to clear.

examples

Session.set("session_material_" .. entityId, handle)

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

2items
This part has no composite children. See the Files segment for its leaf payloads.
backing path · modules/session.module

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.