ECG_Kinsey 我有一个角色,他的某个动画A中会将剪裁附件激活从而进行一段效果的呈现,这个效果在Spine中表现的很好,但是在导入Unity之后,当我从该角色的另一个动画过渡到这个动画A的时候,其他的一切都表现正确,唯独剪裁内部的对象看不到了,请问这个有可能是什么原因导致的。
我目前毫无头绪,也暂时无法提供更多的线索
I'm afraid I don't understand, or machine translation was incorrect. The whole point of clipping attachments is to clip (remove) anything that's outside the clipping area. Please always share at least a screenshot which shows your expected result and what you are actually receiving, otherwise it's very hard to help.
Also, 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 version in the Package Manager) are you using?
Always be sure you're using the latest spine-unity unitypackage, as it may be a bug which has already been fixed.
From your other posts, perhaps you're using skin bones and have via one or more disabled skin-bones also disabled attachments which are relevant for clipping.
ECG_Kinsey ECG_Kinsey 我发现了新的问题,该角色的动画A需要两个图集进行配合表现,而在播放动画A之前的其他动画的时候,只需要一个图集,当从其他动画过渡到动画A的时候,SkeletonAnimation并没有正确的为MeshRender加载该动画所需的第二个材质,这应该是导致上述裁剪内部对象看不到的原因。
我过渡动画通过调用SkeletonAnimation的SetAnimation的方法,请问我是否遗漏了什么步骤所以导致切换动画的时候没有加载所有所依赖的材质
SkeletonAnimation
should always display all atlas pages automatically depending on active attachments. Also, there is no loading of atlas pages involved at runtime, all pages are loaded together with the SkeletonDataAsset
when your skeleton is loaded. Could you please again show a screenshot of what you're expecting to see, and what incorrect atlas pages you get instead? Please show a screenshot of the scene result as well as of the SkeletonAnimation
in the Inspector, including the active Materials.
ECG_Kinsey ECG_Kinsey 我找到原因了,是因为我没有设置除default以外的皮肤,当我设置其他皮肤后,这个问题就得到了解决。
但是为什么default皮肤的表现是异常的,我想知道这个原因,或者default皮肤的初始化逻辑有啥不同呢
The default skin works no different than other skins in regards to clipping and atlas pages. I guess that you're using skin bones and are accidentally via a disabled skin-bone disabling attachments that you did not intend to disable.