Skip to content

API Function behavior

github-actions[bot] edited this page Nov 24, 2026 · 5 revisions

Function: behavior()

function behavior(id, options?): <T>(value, _context) => void;

Defined in: src/engine/core/registry.ts:277

Class decorator: register a GameBehavior under a stable id used by scene files.

Parameters

id

string

options?

ComponentOptions

Returns

<T>(value, _context) => void

Clone this wiki locally