如题,如何能让getBoundingBox显示边框呢。
另外,add了一个sprite,利用getBoundingBox和getContentSize后,获取的width 和 height都是0呢。
var heroBox=heroAct.getBoundingBox();
cc.log(heroBox.x + “_” + heroBox.y + “:” + heroBox.width + “—” + heroBox.height);
如题,如何能让getBoundingBox显示边框呢。
另外,add了一个sprite,利用getBoundingBox和getContentSize后,获取的width 和 height都是0呢。
var heroBox=heroAct.getBoundingBox();
cc.log(heroBox.x + “_” + heroBox.y + “:” + heroBox.width + “—” + heroBox.height);
求大神



