ビジュアルなステートマシン。キャンバス上にステート、グループ、トランジションを置き、各ステートの中にアクションフローを持ちます。
リポジトリ: github.com/dekiengine/deki-fsm · 最新リリース: 0.19.0 · エンジン 0.19.0 以降が必要 · 依存: deki-nodegraph, deki-2d, deki-tween
DekiEditor --packages-add deki-fsm <project> か、パッケージマネージャーからインストールします。エンジン自身のコンポーネントと C++ API は Deki のドキュメントにあります。
エディターでは FSM と表示されます。
コンポーネント
| コンポーネント | カテゴリ | 説明 |
| FsmComponent | ロジック | ステートマシングラフのアセットをこのオブジェクトで実行します。 |
機能フラグ
ビルドから外せる部分です。define を持つ機能はその define で切り替わり、それ以外はコンポーネントと一緒に取り除かれます。
| 機能 | define | デフォルト |
| FSM | DEKI_FEATURE_FSM | オン |
コンポーネントリファレンス
FsmComponent
ステートマシングラフのアセットをこのオブジェクトで実行します。
インスペクターでの名前: FSM コンポーネント · カテゴリ: ロジック · 型: DekiFsm::FsmComponent
| プロパティ | 型 | デフォルト | 説明 |
| graph | AssetRef (FsmGraph) | "" | このオブジェクトが実行するステートマシンのアセットです。ノードグラフエディターで作成します。 |
| variableOverrides | Array<string> | [] | グラフの変数に対する、このオブジェクト独自の初期値です。name=value の形で書きます (例: speedHz=0.625)。 |
変更履歴
変更履歴は英語です。
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.
それ以前のリリース: CHANGELOG.md
パッケージのリフレクションデータから生成しています (エンジン 0.19.0)。プロパティ名はシーンファイルで使われるキーです。名前を変えても別名が残ります (互換性)。