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 this page will cover
Section titled “What this page will cover”- 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