Builtin Library
README.md
procgen.apply
Finishes a live generator: swaps it, in place, for the asset it makes, the way
applying a modifier does. Its current output is written as a durable bundle,
and the entity's Generator component is replaced by an Asset component
standing that bundle, so the result stands on its own with no graph and no
generator. Every generator applied with the same graph, params and frame
references one bundle. procgen.bake is the one-shot counterpart that
realizes a graph's target without a generator.
entity names the entity carrying the Generator, by id or name.
tools.use("procgen", "apply", { entity = "Box" })
Part of procgen.toolbox, called as tools.use("procgen", "apply", ...)
(zero procgen apply in the engine shell). Returns { entity, children, detached, bundle }: the entity's id, its child count with the asset standing,
whether the Generator is gone, and the bundle's path.