Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commite8beb5604c

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's parent, prefab.parent's child and parent, prefab.link's from and to), 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" })