• RuntimesUnity
  • Spine动画骨骼跟随

Spine导入Unity,运行时骨骼未跟随,需要在运行时点击骨骼的AddOverride才能生效,不知道什么原因

Related Discussions
...

在Unity中使用Spine动画时,如果骨骼在运行时未能正确跟随,可能是由于骨骼的Transform或约束设置不正确。确保在Spine项目中正确设置了骨骼的约束,并在Unity中使用正确的组件来管理骨骼的跟随行为。

  1. 确保在Spine中设置了正确的约束,并在导出时包含这些设置。
  2. 在Unity中,检查使用的Skeleton组件(如SkeletonAnimationSkeletonMecanim)的设置,确保启用了正确的选项。
  3. 如果使用了BoneFollower或其他类似组件,确保它们被正确配置以跟随目标对象。
  4. 检查是否有其他动画或脚本在运行时覆盖了骨骼的位置或约束设置。

如果问题仍然存在,可能需要在运行时手动调整骨骼的设置,或者检查是否有其他脚本干扰了骨骼的行为。

@1542784313 With such minimal information it's very hard to help. Please always describe at least what components you're using, and what your Unity hierarchy looks like. My guess is that you're using an isolated UtilityBone instead of the correct hierarchy. If so, see the documentation.

https://zh.esotericsoftware.com/spine-unity-utility-components#SkeletonUtility这个已经设置过了,然后运行的时候,播放动作,武器上有一个跟随点,没有跟随,然后将武器的骨骼点击AddOverride后,会生成一个新的武器骨骼点,这时候再去看原来的武器骨骼点 ,就发现它开始跟随了,重新运行还是一样的,没跟随,所以现在我不知道是需要我设置什么参数还是Spine模型导出的时候,骨骼之间的问题

@1542784313 Unfortunately machine translation still resulted in very unclear text. Also we don't see any screenshot of your hierarchy window in Unity.

Please describe what you want to achieve in the first place, don't describe your attempted solution as it may be wrong, see the xy problem. Also add screenshots where possible to show the results you get and what you would like to get instead.


大概就是这个样子,开始weapon点不跟随,但是点击了AddOverride后,就会跟随了

Thanks For the video, this looks indeed very strange. Did you modify the hierarchy of the bone GameObjects in the Unity hierarchy? It looks wrong that weapon is right below root, is that the case in your Spine skeleton as well?

Which version of the Spine Editor are you using?
Which exact version of the spine-unity runtime (name of the unitypackage, also listed in Assets/Spine/version.txt or in the Package Manager window)?

  • Harald відповіли на це.

    @1542784313 Thanks for the info. Please note that 3.8 is already several years old and does not receive bugfixes any more. Also there have been many bugfixes in the meantime from 4.0 to 4.2. Does this issue also happen when re-exporting your skeleton as version 4.2 from Spine Editor version 4.2 and importing it in spine-unity runtime version 4.2?

    You didn't answer my other question:

    Harald Did you modify the hierarchy of the bone GameObjects in the Unity hierarchy? It looks wrong that weapon is right below root, is that the case in your Spine skeleton as well?

    这个我并没有修改,我只是使用

    Ok, thanks for the info. Then this might be a bug or a bad combination of components in 3.8. Anyway, if you only need following, you should use the BoneFollower component instead.

    Thank you,I will change the Spine version

    • Harald вподобали це.