Skip to content

DevtoolsNode

Defined in: packages/engine/src/stores/devtoolsTree.ts:18

One row of the tree: the component the developer wrote, with its entity’s id beside the name and its behaviours as leaves.

Property Type Description
children DevtoolsNode[] -
description? string -
edits? Record<string, unknown> A behaviour’s props as the inspector wrote them over the component’s; left out while there are none.
entityId? string The key the entity’s traits sit under in the world’s dump.
id string The entity’s id for an entity; a behaviour’s is its entity’s id and one of its own.
kind DevtoolsNodeKind -
name string The scene’s name, the developer’s component, the behaviour’s.
propName? string The one prop a game passes this behaviour’s props under, as movement on a Player; left out where the component takes them one by one.
props? Record<string, unknown> A behaviour’s value as the component passed it.
ranges? Partial<Record<string | number | symbol, PropRange>> -
readOnlyReason? string Why a behaviour’s props take no edit, shown on its card; left out while they take one.
source? string -
wiki? string -