DEKI/ENGINE docs
deki-fsm 0.19.0
Deki package reference
deki-fsm

Visual state machines with per-state action stacks and event-wired transitions

Repository: github.com/dekiengine/deki-fsm · Latest release: 0.19.0 · Needs engine 0.19.0+ · Requires: deki-nodegraph, deki-2d, deki-tween

Install with DekiEditor --packages-add deki-fsm <project>, or from the Package Manager. The engine's own components and C++ API are in the Deki docs.

Shown in the editor as FSM.

Components

Component Category Description
FsmComponent Logic Runs a state machine graph asset on this object.

Feature flags

Parts you can leave out of a build. A feature with a define is switched there; the rest are stripped with their components.

Feature Define Default
FSM DEKI_FEATURE_FSM on

Component reference

FsmComponent

Runs a state machine graph asset on this object.

Inspector name: Fsm Component · Category: Logic · Type: DekiFsm::FsmComponent

Property Type Default Description
graph AssetRef (FsmGraph) "" The state machine asset this object runs. Author it in the node graph editor.
variableOverrides Array<string> [] This object's own starting values for the graph's variables, as name=value (e.g. speedHz=0.625).

Changelog

0.19.0

Changed

  • minEngine 0.19.0: built against engine 0.19.0, whose component metadata records the package each class is in. A build of this package from before does not load and is rebuilt.

Added

  • Japanese, Simplified Chinese and Korean: editor/lang/ja.json, zh.json and ko.json translate the names, tooltips and enum values this package's components show in the Inspector.
  • The package's editor text goes through the editor's translation (Tr), so it shows in the editor's language. Needs the editor release that adds Localization.h; raise minEngine to it when releasing.

0.18.2

Fixed

  • Timed actions keep time when frames are long or uneven. An action that finished part way through a frame let the next one in the flow start with the whole frame again, so a flow gained time at each step, and a long frame (a scene loading, a screenshot sent from the board) moved each machine on by a different amount: the logic demo's orbs, started a phase apart, bunched up. A finished Wait, Tween Property or delayed Send Event now passes on only the time it did not use, and one frame counts as at most a second.

Earlier releases: CHANGELOG.md.


Generated from the package's reflection data (engine 0.19.0). Property names are the keys used in scene files. Renames keep an alias (compatibility).