Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spine开启cache后,合批无效 #8

Open
wingfordream opened this issue Jan 6, 2024 · 2 comments
Open

spine开启cache后,合批无效 #8

wingfordream opened this issue Jan 6, 2024 · 2 comments

Comments

@wingfordream
Copy link

我跑了下项目里的demo,在不改任何东西的情况下,spine增强下面的两个示例的合批都无效,spine的cache改成realtime才有效,为啥

@wingfordream
Copy link
Author

测试了一下,2.4.10上是正常的,2.4.12上有问题

@smallmain
Copy link
Owner

问题已确认,是适配版本的时候错误地合并了旧代码,导致 spine cache 模式出现以上问题。

在增强包更新之前,可以自行修改自定义引擎:

image

|| (this.isAnimationCached() && !CC_NATIVERENDERER);   // 将其删除
|| comp.isAnimationCached();   // 将其删除

将图中绿色标注部分的代码删除即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants