Builtin Library
README.md
proc.ops.prefabs
Entity Prefab and Bundle ops. A Prefab is a flat array of entity records (name, original id, parent id, transform, components); a Bundle is the persistable container of those records. These ops build, link and join the records, and bundle.write and scene_fragment.write persist them through the .bundle asset type, writing each Geometry a Model carries as a .mesh of its own. part.merge packs several parts under one name and part.unpack takes one back by its name.
ops(fields) returns the family as a map of op id to op def; procPacks/prefab.procPack registers it. A graph calls one of its ops as g.op.<id>({ ... }) and a script as proc.ops.<family>.<op>(...); the procgen toolbox's describeNode answers each in full.
Ops: bundle.from_asset, bundle.from_instances, bundle.from_population, bundle.from_prefab, bundle.join, bundle.spawn, bundle.write, part.merge, part.unpack, prefab.add_component, prefab.empty, prefab.entity, prefab.from_asset, prefab.from_geometries, prefab.from_geometry, prefab.from_instances, prefab.from_population, prefab.link, prefab.parent, scene_fragment.write.
Part of @builtin::systems.procgen.proc; required as @builtin::systems.procgen.proc.ops.prefabs.