• 日本語
  • 「spine-unity 3.8 2019-08-09」をインポートするとエラーになります。

お世話になっています。

先日8/5に公開された「spine-unity 3.8 2019-08-09」をインポートするとエラーになってしまいます。

こちらのページの
Spine Unity Download: Installing Spine Unity Extension UPM %28Unity Package Manager%29 Packages

下記をダウンロード&インポートしました。
spine-unity 3.8 2019-08-09
https://esotericsoftware.com/files/runtimes/unity/spine-unity-3.8-2019-08-09.unitypackage


Assets/Spine/Runtime/spine-unity/Modules/AttachmentTools/AttachmentTools.cs(826,9): error CS1061: Type Spine.Skin' does not contain a definition forAddAttachment' and no extension method AddAttachment' of typeSpine.Skin' could be found. Are you missing an assembly reference?


Assets/Spine/Runtime/spine-unity/Modules/Timeline/SpineSkeletonFlip/SpineSkeletonFlipMixerBehaviour.cs(85,14): error CS0122: `Spine.Skeleton.scaleX' is inaccessible due to its protection level

①と②のエラーが合計13個発生しています。
今回のアップデートで変更のかかった関数と変数名の変更がされていないようです。

  • Renamed Skin.AddAttachment() to Skin.SetAttachment().
  • Skeleton flipX/flipY has been replaced with scaleX/scaleY. This cleans up applying transforms and is more powerful. Allows scaling a whole skeleton which has bones that disallow scale inheritance

お手数ですが、ご確認いただいてもよろしいでしょうか。

Related Discussions
...
  • Изменено

これは、Spine-Unityランタイムの以前のインストールからの古い残りのアセットがあるように見えます。 このファイルは、説明されている場所の新しいランタイムには存在しません。

Assets/Spine/Runtime/spine-unity/Modules/Timeline/SpineSkeletonFlip/SpineSkeletonFlipMixerBehaviour.cs

This looks as if there are old leftover assets from a previous installation of the Spine-Unity runtime. This file does no longer exist in the new runtime at the described location:

Assets/Spine/Runtime/spine-unity/Modules/Timeline/SpineSkeletonFlip/SpineSkeletonFlipMixerBehaviour.cs

既存のインストールの上に3.8 unitypackageをインストールした場合、新しい3.8 unitypackageをインストールする前に、トップディレクトリの SpineSpine Examplesを削除してください。
If you have installed the 3.8 unitypackage over an existing installation, please delete the top directories Spine and Spine Examples before installing the new 3.8 unitypackage.

まだ知らない場合は、公式の3.7から3.8へのアップグレードガイドがここにあります:
In case you don't already know it, there is an official 3.7 to 3.8 upgrade guide available here:
Spine-Unity 3.7 to 3.8 Upgrade Guide

これで問題が解決する場合はお知らせください。
Please let us know if this resolves your problem.

回答ありがとうございます。
該当のファイルを削除しましたところ、正常にインストールできました!
とても助かりました、ありがとうございます!

それが働いたことを聞いてうれしい。 お返事ありがとうございます。
Glad to hear that it worked. Thanks for getting back to us.