this.bitmap.activeResource is not a function

//开放域层级
private static _openZone:Laya.Sprite;
//开放域纹理
private static _openZoneTexture:Laya.Texture;
public static openZone(vx:number=0,vy:number=0,scaleX:number=1,scaleY:number=1)
{
if(!this._openZone)
{
//开放域
this._openZone = new Laya.Sprite();
}
this._openZone.size(Laya.stage.width,Laya.stage.height);
if(this._openZone.parent) return;
console.log("打开开放域",Laya.Browser.onMiniGame)
Laya.stage.addChild(this._openZone);
this._openZone.x = vx;
this._openZone.y = vy;
if(Laya.Browser.onMiniGame){
Laya.Browser.window.sharedCanvas.width = Laya.stage.designWidth;
Laya.Browser.window.sharedCanvas.height = Laya.stage.designHeight;
if(!this._openZoneTexture)
this._openZoneTexture = new Laya.Texture(Laya.Browser.window.sharedCanvas);
this._openZoneTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新
console.log("开放域大小",this._openZoneTexture.width,this._openZoneTexture.height,Laya.Browser.window.sharedCanvas.width,Laya.Browser.window.sharedCanvas.height);
this._openZone.graphics.drawTexture(this._openZoneTexture,0,0,this._openZoneTexture.width,this._openZoneTexture.height,new Laya.Matrix(scaleX,0,0,scaleY));
}
}
接字节跳动小游戏,绘制开放域排行榜时报this.bitmap.activeResource is not a function这个错,请问下有解决方法吗
QQ图片20200618190113.png
已邀请:

157*****593

赞同来自:

方便提供一个Demo吗

tt8998781

赞同来自:

这是复现demo,用的是字节跳动开发者工具-1.9.4

要回复问题请先

商务合作
商务合作