• 日本語
  • [UE4] Spine以外のjsonファイルをインポートした際に、SpineSkeletonDataAssetになる

お世話になっております。

表題の通り、Spine以外のjsonファイルをUE4にインポートした際に、
データテーブルではなくSpineSkeletonDataAssetになってしまいます。

UE4上で作成したデータテーブルをjsonとしてエクスポート後、
そのjsonをインポートしても同様にSpineSkeletonDataAssetになってしまいます。

データテーブルとしてインポートしたいのですが、
上記現象を回避する方法はございますでしょうか。

使用しているSpine RuntimeとUE4のバージョンは以下の通りです。
▪UE4・・・4.24
▪Spine Runtime・・・3.8

Related Discussions
...

ご迷惑おかけして申し訳ありません。 SkeletonDataAssetファイルの代わりにデータテーブルとしてロードする.jsonファイルを共有できますか? 私たちのspine-ue4プラグインは、 .jsonファイルがスケルトンファイルであるかどうかを検出しようとします。

Sorry for the trouble. Could you share your .json file that you want to load as a data table instead of a SkeletonDataAsset file? Our spine-ue4 plugin tries to detect if the .json file is a skeleton file or not.

6 jours plus tard

ご回答いただきありがとうございます。

インポート予定の.jsonを共有するのは難しいので、代わりに同様の現象が起きた.jsonファイルを共有します。
この.jsonファイルはUE4上で作成した構造体を元にするデータテーブルを、.jsonとしてエクスポートしたものになります。
この.jsonファイルもSpineSkeletonDataAssetとしてインポートされてしまいます。

このような形のものしか共有できず申し訳ないですが、何卒よろしくお願いいたします。

.jsonをありがとう。 ここで問題をオープンしました:
[ue4] Asset importer also tries to import general .json files · #1671

一時的な修正として、spine-ue4プラグインのコピーで次のコード行をコメント化できます。
spine-runtimes/SpineSkeletonImportFactory.cpp at 3.8

これを行う場合のみ、.skelファイルをインポートできます。

Thank you for the .json. I have opened an issue here:
[ue4] Asset importer also tries to import general .json files · #1671

As a temporary fix, you could comment this line of code in your copy of the spine-ue4 plugin:
spine-runtimes/SpineSkeletonImportFactory.cpp at 3.8

You will only be able to import .skel files if you do this.

お早い対応、ありがとうございます。

ひとまず共有いただきました方法にて解決を図ってみます。

不具合の修正、よろしくお願いいたします。

4 mois plus tard

これは、3.8および4.0ベータブランチで修正されました。
This has now been fixed in the 3.8 and 4.0-beta branches.