sprite-frame.ts中
_initVertices方法下
const b = texh === 0 ? 0 : rect.y / texh;
要改为
const b = texh === 0 ? 0 : rectY / texh;
否则渲染图集图会有错误
sprite-frame.ts中
_initVertices方法下
const b = texh === 0 ? 0 : rect.y / texh;
要改为
const b = texh === 0 ? 0 : rectY / texh;
否则渲染图集图会有错误
分支删除时,github 关闭的。之前没注意到还有这个 PR。我们会看一下合并到新版本里。谢谢。
方便弄一个简单的demo 看看 是怎样的错误么? 我们的测试例好像没包含到,我看看到时候加到测试例里?

只显示左上角的四分之一,计划通过 SpriteFrame.rect 去实现


SpriteRenderDemo.zip (51.4 KB)
好的,感谢