- تم التحرير
全Spineデータの自動Json吐き出しについて
お世話になっています。
「spine-unity」を利用しています。
「spine-unity」に定期的に更新がかかり、新機能が追加されていくのは大変ありがたいのですが、全SpineのデータのJsonファイルを吐き出し直さなくてはいけなくなるのがとても大変です。
当方の小さな規模のゲームでもSpineプロジェクトは40近くあり、全てのSpineについて1つ1つ手作業でJsonを吐き出し直して再設定し直し、という作業がとても手間がかかります。
大企業やオンラインゲーム、など規模が大きくなればなるほどネックとなりますし、Spine自体の使い勝手にも直結するかと思います。
「指定したフォルダ下にある全てのSpineプロジェクトの自動Json生成」の機能などありますでしょうか。
無いようでしたら作成いただくことを強く希望します。
再輸出に多くの時間を費やしていると聞いて申し訳ありません。
We are sorry to hear that you have been spending a lot of time on re-exporting.
Spineコマンドラインインターフェイスを介してプロジェクトファイルのエクスポートを自動化することをお勧めします。
Export - Spine User Guide: Command line
たとえば、すべてのSpineサンプルプロジェクトをエクスポートし、テクスチャアトラスを作成するために使用するスクリプトは次のとおりです。
spine-runtimes/export.sh at 3.8
We suggest automating exporting your project files via the Spine command line interface:
Export - Spine User Guide: Command line
For example, here is a script we use to export all the Spine example projects and to create texture atlases:
spine-runtimes/export.sh at 3.8
この目的のためにコマンドラインインターフェイスが作成され、すべてのプロジェクトを一度にエクスポートできます。
The command line interface has been created for this purpose, to export all projects at one go.
丁寧に教えてくれてありがとうございます。
しかし、残念ながら私はそれを理解することが出来ませんでした。
サンプルプロジェクトも用意してもらって、申し訳ないのですが、別の方法を探そうと思います。
ありがとうございます。
Thank you for teaching me carefully.
But unfortunately I could not understand it.
I'm sorry to have a sample project prepared, but I'll try to find another way.
Thank you very much.
説明が十分に明確ではなかったことが残念です。 以下の説明が理解できる場合はお知らせください。
I am sorry that the description was not clear enough. Please let us know if the following description is comprehensible.
WindowsまたはMacOS / Linuxを使用していますか?
Are you using Windows or MacOS/Linux?
Windowsでは、コマンドラインスクリプト(またはバッチスクリプト)は、英語で「コマンドプロンプト」と呼ばれる「cmd」実行可能ファイルを介して実行できます。残念ながら、正しい日本語の翻訳はわかりませんが、ここで、画像を見て意味がわかる場合は、英語のバッチスクリプトチュートリアルを見つけることができます:https://www.howtogeek.com/263177/how-to-write-a-batch-script-on-windows/。バッチスクリプトの拡張子は .bat
で、実行できます(ファイル内の手順を次々に実行します)。 WindowsでMacOS / Linuxシェルスクリプトを使用する方法もあります。
- GIT for Windowsのインストール、または
- Windows 10上のWindowsのLinuxサブシステム.
On windows, command line scripting (or batch scripting) can be done via thecmd
executable, calledCommand Prompt
in English. Unfortunately I do not know the correct Japanese translation, but here you can find an English batch scripting tutorial in case you know what I mean by looking at the images: https://www.howtogeek.com/263177/how-to-write-a-batch-script-on-windows/. The batch scripts have extension.bat
and can be executed (to perform the steps in the file one after another). There is also a way to use MacOS/Linux shell scripts on Windows: - Installing GIT for Windows, or
- Linux subsystem for Windows on Windows 10.
MacOSおよびLinuxでは、シェルスクリプト(またはbashスクリプト、非常に一般的なシェルバリアント)と呼ばれます。シェルスクリプトのファイル拡張子は .sh
です。上記の投稿で、すべてのサンプルスケルトンプロジェクトを一度にエクスポートするために使用するスクリプトへのリンクを提供しました。
spine-runtimes/export.sh at 3.8
On MacOS and Linux, it is called shell scripting (or bash scripting, a very common shell variant). The file extension of shell scripts is .sh
. In the posting above, I have provided a link to the script that we use to export all our example skeleton projects at once:
spine-runtimes/export.sh at 3.8
Spineは、上記のコマンドラインスクリプトからスケルトンまたはアトラステクスチャをエクスポートするためのコマンドラインインターフェイスを提供します。
Export - Spine User Guide: コマンドライン
ユーザー(または別のプログラマー)は、スケルトンを1つずつエクスポートするスクリプトを記述できます。このスクリプトは、ボタンをクリックするだけで実行できます。
Spine provides a command line interface to export a skeleton or atlas textures from command line scripts described above:
Export - Spine User Guide: Command line
You (or another programmer) can write a script that will export one skeleton after another, which can be executed at the click of a button.
この説明はあなたにとってより明確ですか?まだ不明な点がある場合はお知らせください。
Does this explanation make sense to you? Please let us know if anything is still left unclear.