Skip to content

Commit abef20e

Browse files
spine args
1 parent d01f14d commit abef20e

4 files changed

Lines changed: 36 additions & 1 deletion

File tree

src/en/spine.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ If you are using a JSON format Spine sprite, you need to pass in the type using
7777
changeFigure:exampleSpine/data.json?type=spine;
7878
```
7979

80+
Use the `motion` argument to switch Spine animations. If you also need to switch the Spine skin, pass the `skin` argument.
81+
82+
```
83+
changeFigure:exampleSpine/data.json?type=spine -motion=anime_00_wait;
84+
changeFigure:exampleSpine/data.json?type=spine -skin=default;
85+
changeFigure:exampleSpine/data.json?type=spine -motion=anime_03_surprise -skin=03_surprise;
86+
```
87+
8088
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.
8189

8290
### Important Notice

src/ja/spine.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ JSON形式のSpine立ち絵を使用している場合は、エンジンがSpine
7777
changeFigure:exampleSpine/data.json?type=spine;
7878
```
7979

80+
Spineのアニメーションを切り替える場合は `motion` 引数を使います。Spineのskinも切り替えたい場合は、追加で `skin` 引数を指定します。
81+
82+
```
83+
changeFigure:exampleSpine/data.json?type=spine -motion=anime_00_wait;
84+
changeFigure:exampleSpine/data.json?type=spine -skin=default;
85+
changeFigure:exampleSpine/data.json?type=spine -motion=anime_03_surprise -skin=03_surprise;
86+
```
87+
8088
6. 本番用パッケージをビルドする場合、またはWebGAL Terreで使用する場合は、`yarn build`コマンドを実行してWebGALをビルドします。完了したら、[カスタムエンジンの使用方法](derivative) を参照して、変更後のエンジンを使用してください。
8189

8290

src/script-reference/commands/changeFigure.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,17 @@ changeFigure:character_a/model.json -motion=sad;
230230
changeFigure:character_a/model.json -motion=smile;
231231
```
232232

233+
### skin
234+
- 字符串
235+
236+
对于 Spine 立绘,填写皮肤名称,切换到对应的 skin。
237+
如需同时切换 Spine 的动画与皮肤,继续使用 `motion` 指定动画,使用 `skin` 指定皮肤。
238+
239+
```webgal
240+
changeFigure:character_x/model.json?type=spine -skin=default;
241+
changeFigure:character_x/model.json?type=spine -motion=anime_00_wait -skin=03_surprise;
242+
```
243+
233244
### expression
234245
- 字符串
235246

src/spine.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ game/
7777
changeFigure:exampleSpine/data.json?type=spine;
7878
```
7979

80+
如果你需要切换 Spine 动画,继续使用 `motion` 参数;如果你需要切换 Spine 的皮肤,则使用 `skin` 参数。
81+
82+
```
83+
changeFigure:exampleSpine/data.json?type=spine -motion=anime_00_wait;
84+
changeFigure:exampleSpine/data.json?type=spine -skin=default;
85+
changeFigure:exampleSpine/data.json?type=spine -motion=anime_03_surprise -skin=03_surprise;
86+
```
87+
8088
6、如果你需要构建生产包,或在 WebGAL Terre 中使用,请运行 `yarn build` 指令构建 WebGAL。完成后,请参考 [如何使用定制引擎](derivative) 使用修改后的引擎。
8189

8290
### 重要提示
@@ -97,4 +105,4 @@ changeFigure:exampleSpine/data.json?type=spine;
97105

98106
总而言之,如果您选择在 WebGAL 中集成或使用 Spine 功能,您必须确保已经合法获得了 Spine 编辑器的授权许可证,并且承诺遵守所有相关的许可证条款与规定。否则,所有由此产生的风险、责任及后果,均由您个人或您的组织承担,与 WebGAL 项目团队无关。
99107

100-
使用本软件即表示您已阅读、理解并同意以上免责声明的全部内容。如果您不同意这些条款,请立即停止使用集成了 Spine 功能的 WebGAL 版本。
108+
使用本软件即表示您已阅读、理解并同意以上免责声明的全部内容。如果您不同意这些条款,请立即停止使用集成了 Spine 功能的 WebGAL 版本。

0 commit comments

Comments
 (0)