我想让一个 ccui.Text 显示的文字左对齐,我这样写无效,那么怎样的写法呢?我用的版本是 挀漀挀漀猀2d-js-v3.3
var size = cc.winSize;
琀栀椀猀.uiText = new ccui.Text();
this.uiText.attr({
string: “uiText: hahahaha”,
fontName: “Arial”,
fontSize: 20,
x: size.width / 2,
y: size.height - 75,
// 开琀攀砀琀AreaSize: cc.size(size.width, 50),
boundingWidth: size.width,
boundingHeight: 50,
textAlign: cc.TEXT_ALIGNMENT_LEFT
});
this.addChild(this.uiText);