Function

system

(name: string, cb: () => void, when: SystemPhase[]): void

Runs a system at the specified events in the pipeline

param name - The name of the system. Overwrites an existing system if the name has been used before.

param cb - The function to run.

param when - When to run the function. See SystemPhase for more info on the 6 phases when the system can be run.

since v4000.0

group Plugins

kaplay logo

Components

Miscellaneous