setTexture的图片不能从缓存中读取 吗

this.setTexture(cc.spriteFrameCache.getSpriteFrame(“r2_1.png”));
这样写是报错的
this.setTexture("#r3_1.png");
这样也是错的,
只有this.setTexture(res.r3_1);这样才对,有大神知道解决办法吗,图片是plist里的

sprite 改变
不同图片:cardsprite1.setTexture(res.logo1_png);//路径
同一图片 cardSprite.setTextureRect(rec);
plist 里 cardSprite.setSpriteFrame(name); //要 不带#

1赞

太感谢了, kkk320大神