kezhiyu @冰水blue:注意是回调。这个是异步获取,如果你要单个获取的话
window.Laya.loader.load(value.url, ls.Handler.create(this, function () {
_this.graphics.clear()
var texture = window.Laya.loader.getRes(value.url)
_this.graphics.drawTexture(texture)
_this.scaleX = _this.set_width / texture.sourceWidth
_this.pivotX = _this.row_data.property.x_m * texture.sourceWidth
_this.pivotY = _this.row_data.property.y_m * texture.sourceHeight
_this.scaleY = _this.set_height / texture.sourceHeight
}))