truncoat

spine 版本3.5.51
unity 版本5.4.3
Spine支持库版本3.5
遇到 sipne 调好的动画 在unity 运行时骨骼和素材位置无逻辑 错乱 和翻转。
spine 导出 binary, 导入unity是用的 先修改atlas 后缀为txt 导入后再修改skel文件后缀为bytes 方式得到 skeletondate,
在skeletondate的animation 预览中动画是正确的,
之后 将skeletondate放到场景中 选择skeletonAnimator,在unity的animator中 连线动画clip后 运动游戏 预制体播放的动画却骨骼和素材位置错乱甚至翻转的。注意:我们动动画之间没有补间部分是直接切换的。

目前项目锁定在unity5.4.3版本 如果是支持库版本太旧的问题,希望提供一个此unity版本能完美运行的 Spine支持库版本。
truncoat
  • Posts: 6

Harald

如前所述,您已锁定Unity 5.4.3:
由于Spine 3.5已经很老了,您可以切换到Spine 3.6和Spine-unity 3.6吗?
As you have mentioned that you are locked on Unity 5.4.3:
Since Spine 3.5 is pretty old, are you able to switch to Spine 3.6 and spine-unity 3.6?

您可以像往常一样在此处找到spine-unity 3.6运行时的下载:
Spine Unity Download: Older Versions
You can find the download of the spine-unity 3.6 runtime here as usual:
Spine Unity Download: Older Versions

附带说明:您可以从一开始就在Spine编辑器中设置导出文件扩展名,这样您就不必在导出后一直重命名它们。
As a side note: you can setup export file extensions right from the start in the Spine Editor, so that you don't have to rename them all the time after exporting.
User avatar
Harald

Harri
  • Posts: 2075

truncoat

Harald wrote:如前所述,您已锁定Unity 5.4.3:
由于Spine 3.5已经很老了,您可以切换到Spine 3.6和Spine-unity 3.6吗?
As you have mentioned that you are locked on Unity 5.4.3:
Since Spine 3.5 is pretty old, are you able to switch to Spine 3.6 and spine-unity 3.6?

您可以像往常一样在此处找到spine-unity 3.6运行时的下载:
Spine Unity Download: Older Versions
You can find the download of the spine-unity 3.6 runtime here as usual:
Spine Unity Download: Older Versions

附带说明:您可以从一开始就在Spine编辑器中设置导出文件扩展名,这样您就不必在导出后一直重命名它们。
As a side note: you can setup export file extensions right from the start in the Spine Editor, so that you don't have to rename them all the time after exporting.
感谢回复。
已经按照以上回复替换了spine版本为3.6 按回复里的链接下载了spine3.6的支持库 并重新在 spine3.6中 重做了 动画素材,导入unity后 将skeletonData 文件 拖入 hierarchy 会有如下报错
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.PropertyHandler.OnGUILayout (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:190)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7296)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7290)
Spine.Unity.Editor.SkeletonAnimatorInspector.DrawInspectorGUI (Boolean multi) (at Assets/Spine/spine-unity/Editor/SkeletonAnimatorInspector.cs:48)
Spine.Unity.Editor.SkeletonRendererInspector.OnInspectorGUI () (at Assets/Spine/spine-unity/Editor/SkeletonRendererInspector.cs:385)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1235)
UnityEditor.DockArea:OnGUI()
truncoat
  • Posts: 6

Harald

我们非常抱歉给您带来的麻烦!
似乎是下载页面出错了,我试了这个unitypackage和其他几个服务器上的unitypackage,不幸的是我没有找到任何3.6的unitypackage与Unity 5.4.3一起工作。

我从下载页面上删除了这个条目,这样以后就不会造成时间上的浪费了。

所以,恐怕到时候需要用3.5运行时来解决你的问题。你能不能发一些截图,显示你期望看到的东西,而在Unity中发生了什么?
--
We are very sorry for the troubles!
It seems that there has been a mistake on the download page, I tried this unitypackage and several others on the server, unfortunately I did not find any 3.6 unitypackage that works with Unity 5.4.3.

I removed the entry from the download page so that it is not causing any wasted time in the future.

So I'm afraid that we will need to fix your problem with the 3.5 runtime then. Could you please post some screenshots that show what you expect to see and what instead happens in Unity?
User avatar
Harald

Harri
  • Posts: 2075

truncoat

Harald wrote:我们非常抱歉给您带来的麻烦!
似乎是下载页面出错了,我试了这个unitypackage和其他几个服务器上的unitypackage,不幸的是我没有找到任何3.6的unitypackage与Unity 5.4.3一起工作。

我从下载页面上删除了这个条目,这样以后就不会造成时间上的浪费了。

所以,恐怕到时候需要用3.5运行时来解决你的问题。你能不能发一些截图,显示你期望看到的东西,而在Unity中发生了什么?
--
We are very sorry for the troubles!
It seems that there has been a mistake on the download page, I tried this unitypackage and several others on the server, unfortunately I did not find any 3.6 unitypackage that works with Unity 5.4.3.

I removed the entry from the download page so that it is not causing any wasted time in the future.

So I'm afraid that we will need to fix your problem with the 3.5 runtime then. Could you please post some screenshots that show what you expect to see and what instead happens in Unity?
非常抱歉不能提供截图
我们遇到的问题与这个 http://zh.esotericsoftware.com/forum/unity-Some-actions-seem-OK-in-the-Spine-software-14144 链接中的问题类似。
truncoat
  • Posts: 6

Harald

那你能不能给我们发一个最小的重现Unity项目,还能显示出问题,以压缩包的形式发到contact@esotericsoftware.com,然后我们可以看一下。

Can you then please send us a minimal reproduction Unity project that still shows the problem, as a zip package to contact@esotericsoftware.com, then we can have a look at it.
User avatar
Harald

Harri
  • Posts: 2075

truncoat

感谢你的耐心,已经发送项目到你给的邮箱地址。可能由于你邮箱的安全设置我的第一封邮件被认为是垃圾邮件,被退回了,邮箱地址是735070457@qq.com,然后我用truncoat@163.com的邮箱又发了一份,这份没有收到回执希望成功送达了。


---

第二封邮件也被退回了我估计你的邮箱可能存在拒收压缩包之类的安全规则,我直接把项目放到github上了https://github.com/truncoat/SpineTestProject
truncoat
  • Posts: 6

Harald

我注意到你在 SkeletonAnimator组件中禁用了 Auto Reset。最有可能的是你想保持Auto Reset的启用,除非你有一些特殊的原因。
I noticed that you have disabled Auto Reset at the SkeletonAnimator component. Most likely you want to keep Auto Reset enabled, unless you have some specific reasons for that.

当我在你的演示场景中启用Auto Reset时,所有的东西都按预期播放。
When I enable Auto Reset at your demo scene, everything plays back as expected.
User avatar
Harald

Harri
  • Posts: 2075

truncoat

的确是这个问题,感谢解答。
truncoat
  • Posts: 6

Harald

不客气
You're welcome.
User avatar
Harald

Harri
  • Posts: 2075


Return to 中国Spine用户