Editor model · interface

InspectorField

interface InspectorField
import type { InspectorField } from '@driftengine/editor';

Properties

NameTypeDescription
groupstringWhat this field belongs to: a component's name, or transform for a node.
labelstringThe field's own name, as it was declared.
typestringThe declared type, verbatim — f32, enum:Mood, Entity.
kindFieldKind
enumNamestringFor enum, the name after the colon. Empty otherwise; this package has no variant list.
optionalbooleanWhether the field is an option, which the store spells as an option: prefix.
valueunknownWhat the store holds, not a friendlier version of it.
More

A bool column is a Uint8Array, so a boolean field reads back as 0 or 1. kind is what tells a panel to draw a checkbox; converting the value here would make this disagree with world.read for one type out of thirteen, which is a worse surprise than the number.