Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / DEFAULT_SCRIPT_ERROR_RETRY_DELAY

Variable: DEFAULT_SCRIPT_ERROR_RETRY_DELAY ​

ts
const DEFAULT_SCRIPT_ERROR_RETRY_DELAY: 1 = 1;

Defined in: systems/ScriptBehaviourSystem.ts:28

Seconds a Behaviour waits after an error (load, init() or update()) before it is re-initialised. Without the wait a script that throws every frame was torn down and rebuilt every frame.