ProcessSystem
Defined in: ProcessSystem.ts:16
Built-in system that ticks all ProcessComponents on entities in non-paused scenes, plus a scene-level set of global processes.
Runs at Phase.Update with priority 500, ensuring tweened values are fresh before ComponentUpdateSystem (priority 1000) reads them.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ProcessSystem():
ProcessSystem
Returns
Section titled “Returns”ProcessSystem
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”context
Section titled “context”
protectedcontext:EngineContext
Defined in: System.ts:22
Reference to the engine context, set on registration.
Inherited from
Section titled “Inherited from”enabled
Section titled “enabled”enabled:
boolean=true
Defined in: System.ts:19
Whether this system is active.
Inherited from
Section titled “Inherited from”
readonlyphase:Update=Phase.Update
Defined in: ProcessSystem.ts:17
The phase this system runs in.
Overrides
Section titled “Overrides”priority
Section titled “priority”
readonlypriority:500=500
Defined in: ProcessSystem.ts:18
Execution priority within the phase. Lower = earlier. Default: 0.
Overrides
Section titled “Overrides”timeScale
Section titled “timeScale”timeScale:
number=1
Defined in: ProcessSystem.ts:21
Global time scale multiplier. Stacks multiplicatively with per-scene timeScale.
Methods
Section titled “Methods”_setContext()
Section titled “_setContext()”_setContext(
context):void
Defined in: System.ts:30
Internal
Set the engine context. Called by Engine during startup.
Parameters
Section titled “Parameters”context
Section titled “context”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”add(
process):Process
Defined in: ProcessSystem.ts:31
Add a scene-level process (not tied to any entity).
Parameters
Section titled “Parameters”process
Section titled “process”Returns
Section titled “Returns”cancel()
Section titled “cancel()”cancel(
tag?):void
Defined in: ProcessSystem.ts:37
Cancel scene-level processes, optionally by tag.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
onRegister()
Section titled “onRegister()”onRegister(
context):void
Defined in: ProcessSystem.ts:26
Called once when the system is registered with the engine.
Parameters
Section titled “Parameters”context
Section titled “context”Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”onUnregister()?
Section titled “onUnregister()?”
optionalonUnregister():void
Defined in: System.ts:52
Called when the system is removed.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”update()
Section titled “update()”update(
dt):void
Defined in: ProcessSystem.ts:48
Called every frame (or every fixed step for FixedUpdate).
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”
protecteduse<T>(key):T
Defined in: System.ts:35
Resolve a service by key, cached after first lookup.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”ServiceKey<T>
Returns
Section titled “Returns”T