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[]): voidimport { selectRange } from '@driftengine/tools';Parameters
| Parameter | Type | Description |
|---|---|---|
selection | Selection | |
from | number | |
to | number | |
order | readonly 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.