In-game tools · function

inspectorRows

The rows for a selection: the components every selected entity has, field by field.

Explained in In-game tools.

function inspectorRows(world: InspectableWorld, entities: readonly number[]): InspectorRow[]
import { inspectorRows } from '@driftengine/tools';

Parameters

ParameterTypeDescription
worldInspectableWorld
entitiesreadonly number[]

In depth

Components are taken from the first entity and then filtered by the rest, so the order is stable — a row that moved between frames because a set iterated differently is a field somebody clicks and misses.