We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.8.4
Windows 11 专业版
当sp.Skeleton组件的AnimationCacheMode==SHARED_CACHE时候,先执行skeleton.skeletonData=null,然后再赋值回来skeleton.skeletonData=res_test,此时由于if (this.isAnimationCached())判断不成立,会导致this._skeleton没有赋值,下一次执行skeleton.setAnimation()就会报错.
我自己的临时解决办法如图注释的代码:if (this.isAnimationCached())不成立也赋值回去...
No response
The text was updated successfully, but these errors were encountered:
bofeng-song
No branches or pull requests
Cocos Creator version
3.8.4
System information
Windows 11 专业版
Issue description
当sp.Skeleton组件的AnimationCacheMode==SHARED_CACHE时候,先执行skeleton.skeletonData=null,然后再赋值回来skeleton.skeletonData=res_test,此时由于if (this.isAnimationCached())判断不成立,会导致this._skeleton没有赋值,下一次执行skeleton.setAnimation()就会报错.
我自己的临时解决办法如图注释的代码:if (this.isAnimationCached())不成立也赋值回去...
Relevant error log output
No response
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: