求教 点击button 怎么换button上的图片

为了实现角色 衣服 武器 等等 更换

你用的是uiButton吗?

settexture

是的 用的uibutton 想做个背包

不是loadtexture 吗

Button的话是loadTextures,loadTextureNormal,loadTexturePressed,loadTextureDisabled。

记错了 反正就是怎么设置texture 这么多api 你记得完?用的时候找:2:

我的办法是
_uibutton->loadTextures(“pictureName.png”, “pictureName.png”);