Skip to content

systemSet

systemSet(name): SystemSet

Defined in: scheduler/system.ts:155

Creates a system set — a named group that systems can belong to.

System sets let you apply shared ordering constraints and run conditions to multiple systems at once, rather than configuring each system individually.

string

SystemSet

A system set is just a label. Configuration (ordering, run conditions) is applied separately per schedule via Scheduler.configureSet.

const physics = systemSet('physics')
const rendering = systemSet('rendering')
scheduler()
.configureSet('update', rendering, { after: physics })
.useSystem('update', applyForces, { inSet: physics })
.useSystem('update', resolveCollisions, { inSet: physics })
.useSystem('update', drawWorld, { inSet: rendering })
.run()