creator label 下一帧才刷新大小 itemNameNd.getComponent(cc.Label)._updateRenderData(true)

论坛 期权论坛 脚本     
匿名网站用户   2020-12-19 19:04   33   0
itemNameNd.getComponent(cc.Label).string = szName + "(" + itemNum + ")"
        
                    itemNameNd.getComponent(cc.Label)._updateRenderData(true)

                    let width = itemNameNd.width + 10
                    let nameBg = node.getChildByName("NameBg")
                    nameBg.width = width

转载于:https://www.jianshu.com/p/c68156ce6b2d

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:1136255
帖子:227251
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP