Hi, I need obtain the sprite filename, this is possible with getTexture() or getDescription() ?
var mysprite = new cc.Sprite(res.image_png);
mysprite.setName(“myname”);
var myfilename = this.getChildByName(“myname”).getTexture();
cc.log(myfilename); //show: [object Object]
var myfilename2 = this.getChildByName(“myname”).getDescription();
cc.log(myfilename2); //show: getDescription is not a function
I need obtain “image.png” and don´t want use setUserData() and getUserData()
Thanks