- Editado
图片消失问题
当图片的中心点滚动到设备边界时候就消失了,请问这是bug?还是有其它解决方案?正常期望在图片完全滚动出设备边界才消失
你能给我们更多信息吗? 您是否在自己的应用程序中看到了Spine Runtimes的这个问题? 如果是这样,您使用的Spine Runtimes是什么? 你用的是什么版本?
Could you give us more information? Do you see this problem with the Spine Runtimes in your own app? If so, what Spine Runtimes are you using? What version are you using?
如果您正在谈论Unity并且您正在使用SkeletonGraphic组件,我会假设您的RectTransform边界设置得太小。
您可以在此处查看此论坛帖子,了解如何更改边界:
Skeleton Graphic pops out when it's origin exits RectMask
翻译这是:
这通常来自RectTransform边界,位于父掩模的剔除区域之外。
要解决此问题,您可以选择SkeletonGraphic对象,在工具栏中确保UI TransformTool处于活动状态:
TransformToolsUI.png
然后,您可以拖动RectTransform的大小以匹配实际的字符大小。 您可能希望在执行此操作时按住Alt键以从中心调整大小。
If you are talking about Unity and you are using the SkeletonGraphic component, I would assume that your RectTransform bounds are setup too small.
You can see this forum thread here for how to change bounds:
Skeleton Graphic pops out when it's origin exits RectMask
在 cocos2d上遇到的这个问题
您使用的是哪个版本的spine-cocos2dx运行时?3.7?3.8测试版? 哪个提交?
Which version of the spine-cocos2dx runtime are you using? 3.7? 3.8-beta? Which commit?
我们用的 spine-cocos2d-objc 版本号是3.7.0 ,也查看了里面依赖的cocos2d版本号是3.5.0.
感谢您的信息。 我发现了这个问题。 它在我们的GitHub存储库中的3.7和3.8-beta分支的最新提交中修复,网址为https://github.com/esotericsoftware/spine-runtimes
Thank you for the information. I have identified the problem. It is fixed in the latest commits in the 3.7 and 3.8-beta branches in our GitHub repository at https://github.com/esotericsoftware/spine-runtimes
在滑动的时候带有动画的图片消失了
谢谢你的项目。 我发现了另一个错误。 它固定在3.7和3.8-beta分支中。
Thank you for the project. I've found another bug. It's fixed in the 3.7 and 3.8-beta branches.
从左侧屏幕外飞行进入,偶尔部分图片消失
Flying from the left screen, and occasionally some pictures disappear
我担心我的测试用例无法重现这一点。 你能修改我们的cocos2d-objc例子来重现你看到的问题吗?
I'm afraid I can not reproduce this with my test case. Could you modify our cocos2d-objc example to reproduce the issue you see?
或者,您可以通过设置SkeletonAnimation.skipVisibilityCheck = true
来禁用剔除。
Alternatively, you can disable culling by setting SkeletonAnimation.skipVisibilityCheck = true
.
我们使用 _skipVisibilityCheck = true 暂时解决了这个问题,修改了源码,但是我们担心这样会不会内存暂用过大?
这会奏效。 对绩效的影响可能会微不足道。 实际上,可见性检查本身可能比仅仅向GPU提交几何体更昂贵。
我试图弄清楚为什么这种可见性检查无法正常工作。 但是我不能像上面的截图那样让它失败。 如果您可以修改spine-cocos2d-objc示例来重现该问题,我将非常感激。
This will work. The impact on performance will likely be neglible. In fact, the visibility check itself might be more costly than just submitting the geometry to the GPU.
I'm trying to figure out why this visibility check doesn't work correctly. But I can't make it fail like in your screenshot above. If you can modify the spine-cocos2d-objc example to reproduce the issue I'd be much obliged.