Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

cocos2d-js v3.6九宫格 Scale9Sprite 显示不出来

$
0
0

@gj_feixiang 写道:

    var panelBet = new ccui.Scale9Sprite("#scene_coinbg_02.png",cc.rect(0,0,100,128),cc.rect(1,1,1,1));
    panelBet.attr({anchorX: 0.5, anchorY: 0.5, x: 0, y: 450});
    this.addChild(panelBet);

上面是我创建9宫格的方式,哪里不对?为什么创建添加之后显示不出来呢?

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>