Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

proc.records

Record kinds: the values a graph moves that become assets when saved (a material, a mesh, a texture, a user's own).

proc.record({ name, asset, applies?, fields?, live?, release?, save?, load? }) defines a kind; a .procRecord asset's init.luau returns one. A record carries its kind's guid as kind; the node that writes it states the kind on the geometry's detail attribute records ({ [guid] = reference }), and output, export and import find the definition there. save and load default to the asset type's own graph.write and graph.read. A kind whose live value holds something (a scratch asset) states release, which output calls once nothing stands on the value.

Part of @builtin::systems.procgen.proc.