ComponentUpdateSystem
Defined in: ComponentUpdateSystem.ts:56
Calls update(dt) on all enabled components in non-paused scenes.
Extends
Section titled “Extends”BaseComponentUpdateSystem
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ComponentUpdateSystem():
ComponentUpdateSystem
Returns
Section titled “Returns”ComponentUpdateSystem
Inherited from
Section titled “Inherited from”BaseComponentUpdateSystem.constructor
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”BaseComponentUpdateSystem.context
enabled
Section titled “enabled”enabled:
boolean=true
Defined in: System.ts:19
Whether this system is active.
Inherited from
Section titled “Inherited from”BaseComponentUpdateSystem.enabled
errorBoundary
Section titled “errorBoundary”
protectederrorBoundary:ErrorBoundary
Defined in: ComponentUpdateSystem.ts:26
Inherited from
Section titled “Inherited from”BaseComponentUpdateSystem.errorBoundary
readonlyphase:Update=Phase.Update
Defined in: ComponentUpdateSystem.ts:57
The phase this system runs in.
Overrides
Section titled “Overrides”BaseComponentUpdateSystem.phase
priority
Section titled “priority”
readonlypriority:1000=1000
Defined in: ComponentUpdateSystem.ts:23
High priority so game logic runs after engine systems like physics.
Inherited from
Section titled “Inherited from”BaseComponentUpdateSystem.priority
sceneManager
Section titled “sceneManager”
protectedsceneManager:SceneManager
Defined in: ComponentUpdateSystem.ts:25
Inherited from
Section titled “Inherited from”BaseComponentUpdateSystem.sceneManager
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”BaseComponentUpdateSystem._setContext
onRegister()
Section titled “onRegister()”onRegister(
context):void
Defined in: ComponentUpdateSystem.ts:28
Called once when the system is registered with the engine.
Parameters
Section titled “Parameters”context
Section titled “context”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BaseComponentUpdateSystem.onRegister
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”BaseComponentUpdateSystem.onUnregister
update()
Section titled “update()”update(
dt):void
Defined in: ComponentUpdateSystem.ts:59
Called every frame (or every fixed step for FixedUpdate).
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”BaseComponentUpdateSystem.update
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
Inherited from
Section titled “Inherited from”BaseComponentUpdateSystem.use