Skip to content

Behaviors

A behavior attaches to a single actor and runs for that actor alone. Where a system sweeps every actor matching a query, a behavior is scoped to the one actor that holds it, which makes it the natural home for logic that is genuinely per-object.

  • What a behavior is and how it is attached
  • The Behaviors component and the behavior system
  • The behavior lifecycle
  • What a behavior receives on construction
  • Choosing between a behavior and a system
  • Registering behaviors with the engine