Quick-Cocos2d-x 社区版 spine 新增 Lua 接口绑定setAttachment、findBone、findSlot
These features will coming in next stable release: Quick-Cocos2d-x 3.6.2 Release
spine 换装接口 setAttachment
首先你在制作骨骼的时候,需要给一个 slot 设置多个 attachment,spine在一个时刻只会显示其中的一个 attachment,动态切换 attachment 调用 SkeletonRenderer::setAttachment
接口。这个接口自动绑定并未提供,社区版手动绑定提供给开发者使用。
注:只有一个参数时,表示去掉slot的Attachment,不显示图片。