[]fillTexture使用问题

sprite使用drawTexture是可以正常使用的,但是用fillTexture时无任何效果。
class Map extends laya.display.Sprite {
static width: number = 1188;
static height: number = 594;
constructor() {
super();
Laya.loader.load("res/images/map_01.png", Laya.Handler.create(this, this.bgLoaded));
}
bgLoaded(): void {
let t: Laya.Texture = Laya.loader.getRes("res/images/map_01.png");
this.width = 1000;
this.height = 500;
this.graphics.fillTexture(t, 0, 0);
this.zOrder = -1;
}
}
已邀请:

cuixueying

赞同来自:

把fillTexture的第三个和第四个参数设置下就好了!

要回复问题请先

商务合作
商务合作