- Creator 版本: 3.8.3
角色使用spine骨骼动画,在做武器切换时,要用到插槽附件替换来实现武器的切换,2.x和3.7.4都正常,然而3.8.x会出现bug。
出bug的代码:
const gun = this.gunSp.findSlot(‘gun’).getAttachment()
this.player.findSlot(‘weapon’).setAttachment(gun)

3.7.4正常演示:


3.8.3bug演示:

角色使用spine骨骼动画,在做武器切换时,要用到插槽附件替换来实现武器的切换,2.x和3.7.4都正常,然而3.8.x会出现bug。
出bug的代码:
const gun = this.gunSp.findSlot(‘gun’).getAttachment()
this.player.findSlot(‘weapon’).setAttachment(gun)

3.7.4正常演示:


3.8.3bug演示:

spine.setSlotTexture换图,spine里初始用透明图
解决了么、
用spine.setSlotTexture这个api就能实现
感谢感谢~这个api可以
用这个接口会把整张合图显示出来,怎么获得具体slot的子图
那就不要用合图,把图片切割成单独一张图片就可以被替换了
为什么在网页可以用setSlotTexture换SpriteFrame类型,但是在安卓就闪退了
有什么方案吗
哪个引擎的版本?是3.8.4吗?必现吗?我准备做还没测试真机
是的 3.8.4
iso 频繁使用使用卡槽 会花屏
13:47:57 [WARN]: Triple buffer enabled for infrequently-updated buffer, consider using MemoryUsageBit::DEVICE instead
13:47:57 [DEBUG]: Init Stacktrace: - [0]anonymous@src/cocos-js/cc.js:1:388473