Builtin Library
README.md
prefab.empty (procNode)
An empty entity prefab: a single root entity with no components. Start a hand-built hierarchy here and grow it with prefab.entity, prefab.add_component, prefab.parent and prefab.link.
The root record has id "0", no parent, and the identity pose.
Inputs
name(String, default "entity"). The root entity's name: the handle every later node resolves it by (prefab.entity'sparent,prefab.parent'schildandparent,prefab.link'sfromandto), and the name the entity carries once spawned. An empty string takes "entity".
Outputs
prefab(Prefab).{ records = { root } }.
local door = g.prefab.empty({ name = "door" })