Scale9Sprite不要在初始化的时候setCapInsets

let scale9Sprite = new ccui.Scale9Sprite(filePath);
scale9Sprite.setCapInsets(cc.rect(x,y,w,h));

而非

let scale9Sprite = new ccui.Scale9Sprite(filePath,cc.rect(x,y,w,h));
posted @ 2019-08-26 17:12  流星曳尾  阅读(650)  评论(0编辑  收藏  举报