In-game tools · function

selectRange

Select everything between two entities in a caller-supplied order.

Explained in In-game tools.

function selectRange(selection: Selection, from: number, to: number, order: readonly number[]): void
import { selectRange } from '@driftengine/tools';

Parameters

ParameterTypeDescription
selectionSelection
fromnumber
tonumber
orderreadonly number[]

In depth

The order is the caller's because only the caller knows it — a scene tree's order is its own flattening, and an asset browser's is its filter and sort. Inclusive at both ends, and the same set whichever end is given first.