0 支持
53 閲覧
(160 ポイント) Q&A

使用環境 Windows10

ツール SS6Player for Unity

スプライトスタジオにてSS6PlayerForUnity(Unity-Native)v1.1,0の環境にてビルドし、

ビルド時はエラーは発生しなかったのですが、UnityにInporterで読み込もうとした所、

下記のエラーログが発生します。

こちら何が原因のエラーでしょうか、教えていただけると幸いです。

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <fb001e01371b4adca20013e0ac763896>:0)

System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <fb001e01371b4adca20013e0ac763896>:0)

System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <fb001e01371b4adca20013e0ac763896>:0)

LibraryEditor_SpriteStudio6+Import+SSAE+Information+Animation.AttributeSolve (LibraryEditor_SpriteStudio6+Import+Setting& setting, LibraryEditor_SpriteStudio6+Import+SSPJ+Information informationSSPJ, LibraryEditor_SpriteStudio6+Import+SSAE+Information informationSSAE) (at Assets/SpriteStudio6/Editor/Import/SSAE.cs:2981)

LibraryEditor_SpriteStudio6+Import+SSAE.Parse (LibraryEditor_SpriteStudio6+Import+Setting& setting, System.String nameFile, LibraryEditor_SpriteStudio6+Import+SSPJ+Information informationSSPJ) (at Assets/SpriteStudio6/Editor/Import/SSAE.cs:426)

LibraryEditor_SpriteStudio6+Import.Exec (LibraryEditor_SpriteStudio6+Import+Setting& setting, System.String nameInputFullPathSSPJ, System.String nameOutputAssetFolderBase, System.Boolean flagDisplayProgressBar) (at Assets/SpriteStudio6/Editor/LibraryEditor_SpriteStudio6.cs:114)

MenuItem_SpriteStudio6_ImportProject.OnGUI () (at Assets/SpriteStudio6/Editor/Tools/Importer.cs:157)

UnityEditor.HostView.OldOnGUI () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)

UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.EventDispatcher.OpenGate () (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <e11cddb636f444f68eec62123764f018>:0)

UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <2500dd078a544a69b6c923861af6cd15>:0)

このページをシェアする

回答 1

+1 支持
(4.9k ポイント)

yohanes 様

お世話になっております。SS6Player for Unity(以降「SS6PU」)の開発担当です。

レポートありがとうございます。

ただ、SS6PUのVer. 1.1.0ですと、ご指摘の箇所(Assets/SpriteStudio6/Editor/Import/SSAE.cs: 2981行目)にAttributeSolve関数がないので……恐らくバージョンが異なるのではないかと思われます。

下記(上部メニュー[Tools]から[SpriteStudio6]-[About]と選んだ時)で出てくるメッセージボックスの中に書かれているバージョン名を教えて頂けますと助かります。

また、仮にVer.1.1.0ですとかなり初期のバージョン(5年以上前のバージョン)となり、特にメッシュパーツ&デフォームのデータを読み込む時におっしゃられるような配列外参照の例外が出る場合がありました。

※いただいたログから推測すると、(Ver.1.1.0だと)この症状である可能性が低くないかとは思われます。

もし可能でしたら、最新のバージョンなどに更新していただけると解決する可能性が高いかと思われます。

※ただし、データの再インポートなどが必要になります。

現状最新版を公開しているGitHubのリポジトリは下記になります。

https://github.com/SpriteStudio/SS6PlayerForUnity/

現在公開している最新版は、Ver.2.1.24(developブランチ) or Ver.2.2.5(develop_v2_2_0)となっており、この2つの違いの詳細は下記の冒頭部分に書かれています。

https://github.com/SpriteStudio/SS6PlayerForUnity/wiki


もし、現在運営中のタイトルなのでSS6PUのバージョンを更新するわけにはいかない……などのご事情があります場合、特殊な対応となりますが、こちらで修正のパッチを限定して充てる方法もあります。

その場合には、

  • ご使用のSS6PU
  • ご指摘の障害が出るSpriteStudioのデータ

をご提供いただければ、そのバージョンに最低限の修正パッチを充てることも可能です。

その対処が必要である場合、別途に弊社サポート窓口から手順などをお知らせいたしますので、このスレッドの返信でお知らせ頂けますようお願いいたします。

※ただし、Ver.1.1.0ですと古すぎるので、他の障害も色々と持っていますので……できるだけ、SS6PUのバージョンを更新していただくことを推奨します。


ご不便をおかけして申し訳ございませんが、ご検討の程何卒よろしくお願いいたします。

(160 ポイント)

確認が遅れてしまい申し訳ありません。

SS6PUのVer確認した所1.1.32で止まっていました。

gitから最新の安定版をダウンロードしたところ、素材の方問題なく読み込め、動作の方も大丈夫そうです。

自分の方の確認不足でお手数おかけして大変申し訳ありません。

丁寧な対応ありがとうございました。

(4.9k ポイント)
yohanes 様

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

レポートありがとうございます。

SS6PUの更新で動作したとのことで、安堵しております。

何卒今後ともよろしくお願いいたします。
...