Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit61a33237e0

README.md

renderLayer.get

Read which render layers entities are on.

renderLayer.get("frontWall")
renderLayer.get({ "marker_a", "marker_b" })
renderLayer.get({ under = { "building" } })
renderLayer.get("building", { tree = true })

Targets take a name or id, a list of them, scene.find records, or a query resolved for you.

tree = true reads the entity and every descendant — one row each, which is how you check a hierarchy a renderLayer.set with tree = true just wrote.

Returns { id, name, layers, skipped } per entity read, with layers as an array of layer names and skipped as the number of that entity's descendants this read left out. An entity nothing has re-layered reports default.

renderLayer.get("Mansion")
-- { id = "ent_7be0…", name = "Mansion", layers = { "default" }, skipped = 46 }

A skipped above zero says the read covered part of a hierarchy, so a root read on its own is distinguishable from a read of the whole building.