diff --git a/src/en/spine.md b/src/en/spine.md index a4382d7f4..7b445d83e 100644 --- a/src/en/spine.md +++ b/src/en/spine.md @@ -77,6 +77,14 @@ If you are using a JSON format Spine sprite, you need to pass in the type using changeFigure:exampleSpine/data.json?type=spine; ``` +Use the `motion` argument to switch Spine animations. If you also need to switch the Spine skin, pass the `skin` argument. + +``` +changeFigure:exampleSpine/data.json?type=spine -motion=anime_00_wait; +changeFigure:exampleSpine/data.json?type=spine -skin=default; +changeFigure:exampleSpine/data.json?type=spine -motion=anime_03_surprise -skin=03_surprise; +``` + 6. If you need to build a production package or use it in WebGAL Terre, run the `yarn build` command to build WebGAL. After completion, please refer to [How to use a custom engine](derivative) to use the modified engine. ### Important Notice diff --git a/src/ja/spine.md b/src/ja/spine.md index 69558ef4e..623353d5f 100644 --- a/src/ja/spine.md +++ b/src/ja/spine.md @@ -77,6 +77,14 @@ JSON形式のSpine立ち絵を使用している場合は、エンジンがSpine changeFigure:exampleSpine/data.json?type=spine; ``` +Spineのアニメーションを切り替える場合は `motion` 引数を使います。Spineのskinも切り替えたい場合は、追加で `skin` 引数を指定します。 + +``` +changeFigure:exampleSpine/data.json?type=spine -motion=anime_00_wait; +changeFigure:exampleSpine/data.json?type=spine -skin=default; +changeFigure:exampleSpine/data.json?type=spine -motion=anime_03_surprise -skin=03_surprise; +``` + 6. 本番用パッケージをビルドする場合、またはWebGAL Terreで使用する場合は、`yarn build`コマンドを実行してWebGALをビルドします。完了したら、[カスタムエンジンの使用方法](derivative) を参照して、変更後のエンジンを使用してください。 diff --git a/src/script-reference/commands/changeFigure.md b/src/script-reference/commands/changeFigure.md index 080d437ff..259af389b 100644 --- a/src/script-reference/commands/changeFigure.md +++ b/src/script-reference/commands/changeFigure.md @@ -230,6 +230,17 @@ changeFigure:character_a/model.json -motion=sad; changeFigure:character_a/model.json -motion=smile; ``` +### skin +- 字符串 + +对于 Spine 立绘,填写皮肤名称,切换到对应的 skin。 +如需同时切换 Spine 的动画与皮肤,继续使用 `motion` 指定动画,使用 `skin` 指定皮肤。 + +```webgal +changeFigure:character_x/model.json?type=spine -skin=default; +changeFigure:character_x/model.json?type=spine -motion=anime_00_wait -skin=03_surprise; +``` + ### expression - 字符串 diff --git a/src/spine.md b/src/spine.md index d4e36aedf..5e7a45671 100644 --- a/src/spine.md +++ b/src/spine.md @@ -77,6 +77,14 @@ game/ changeFigure:exampleSpine/data.json?type=spine; ``` +如果你需要切换 Spine 动画,继续使用 `motion` 参数;如果你需要切换 Spine 的皮肤,则使用 `skin` 参数。 + +``` +changeFigure:exampleSpine/data.json?type=spine -motion=anime_00_wait; +changeFigure:exampleSpine/data.json?type=spine -skin=default; +changeFigure:exampleSpine/data.json?type=spine -motion=anime_03_surprise -skin=03_surprise; +``` + 6、如果你需要构建生产包,或在 WebGAL Terre 中使用,请运行 `yarn build` 指令构建 WebGAL。完成后,请参考 [如何使用定制引擎](derivative) 使用修改后的引擎。 ### 重要提示 @@ -97,4 +105,4 @@ changeFigure:exampleSpine/data.json?type=spine; 总而言之,如果您选择在 WebGAL 中集成或使用 Spine 功能,您必须确保已经合法获得了 Spine 编辑器的授权许可证,并且承诺遵守所有相关的许可证条款与规定。否则,所有由此产生的风险、责任及后果,均由您个人或您的组织承担,与 WebGAL 项目团队无关。 -使用本软件即表示您已阅读、理解并同意以上免责声明的全部内容。如果您不同意这些条款,请立即停止使用集成了 Spine 功能的 WebGAL 版本。 \ No newline at end of file +使用本软件即表示您已阅读、理解并同意以上免责声明的全部内容。如果您不同意这些条款,请立即停止使用集成了 Spine 功能的 WebGAL 版本。