Skip to content

SystemConfig

Defined in: scheduler/system.ts:29

Configuration options for a system registered with Scheduler.useSystem.

Args extends unknown[] = unknown[]

optional after?: SystemFn<unknown[]> | SystemSet | (SystemFn<unknown[]> | SystemSet)[]

Defined in: scheduler/system.ts:40

Symmetric to before.


optional args?: Args

Defined in: scheduler/system.ts:33

Arguments to pass to the system function.


optional before?: SystemFn<unknown[]> | SystemSet | (SystemFn<unknown[]> | SystemSet)[]

Defined in: scheduler/system.ts:38

Runs this system before the given target(s). When a SystemSet is given, this system runs before every system in that set.


optional inSet?: SystemSet | SystemSet[]

Defined in: scheduler/system.ts:42

Assigns this system to one or more sets, inheriting their ordering and run conditions.


optional label?: string

Defined in: scheduler/system.ts:31

A human-readable label.


optional runIf?: RunCondition | RunCondition[]

Defined in: scheduler/system.ts:44

One or more conditions, where all must return true for the system to run.