Log inGet started
Package

empty.procNode

Newest version

This package holds more than this page lists. See all of its files in its world.

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" })