大约有 232 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0047 秒)
...unction(data){ if (!data.dataType || data.dataType !="imageBitmap"){ this.event(data.url,null); return; }; var bitmap; var imageData=data.imageBitmap; if (Render.isWebGL){ ...
来源: Laya_社区 发布时间: 20171120
设置cacheAs = bitmap时, drawCanvas 的一个bug drawCanvas(canvas: HTMLCanvas, x: number, y: number, width: number, height: number): void { if (!canvas) return; var src: Context = canvas.context as Context; var submit: ISubmit; if (src._targets) { //生成渲染结果到src._targets上 /* this...
来源: Laya_社区 发布时间: 20210527
设置cacheAs = bitmap时, drawCanvas 的一个bug drawCanvas(canvas: HTMLCanvas, x: number, y: number, width: number, height: number): void { if (!canvas) return; var src: Context = canvas.context as Context; var submit: ISubmit; if (src._targets) { //生成渲染结果到src._targets上 /* this...
来源: Laya_社区 发布时间: 20210527
...常显示的“野外按钮”内存如下: bottom._bit==70, bottom._bitmap._sp._bit ==70, bottom._bitmap.source == "undefined " bottom._bitmap._render == f _renderEmpty{}; 其他正常显示的button内存如下: bottom._bit = 70 bottom._bitmap._sp._bit ==70 或 bottom._bitmap._sp._bit ==2...
来源: Laya_社区 发布时间: 20220722
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 = n...
来源: Laya_社区 发布时间: 20200618
Sprite 设置 cacheAs = "bitmap"报错 版本:2.0.0 beta5.1 TypeError: Cannot read property 'context' of nullpreload.js:55 at WebGLContext2D.__proto.drawCanvas (/***/bin/libs/laya.webgl.js:12261:18) at RenderSprite3D.__proto._canvas (/***/bin/libs/laya.core.js:8717:12) at Ren...
来源: Laya_社区 发布时间: 20190108
...恢复还是存在另外的问题 laya.resource.Texture类 __proto.recoverBitmap=function(){ var _$this=this; var url=this._bitmap.url; if (!this._destroyed && (!this._bitmap || this._bitmap.destroyed)&& url){ Laya.loader....
来源: Laya_社区 发布时间: 20190311
..._stateNum ? this._state :this._stateNum-1; this._sources && (this._bitmap.source=this._sources[index]); if (this.label){ this._text.color=this._labelColors[index]; if (this._strokeColors)this._text.strokeColor=this._strokeColors[index]; } } __proto.changeClips=function(){ var img=Loader.getR...
来源: Laya_社区 发布时间: 20170516
...ankTexture:Texture = new Texture(Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 rankSprite2.graphics.drawTexture(rankTexture,5,78,rankTexture.width,rankTexture.height); }); 报错bitmap._addReference is not a function TypeError: bitm...
来源: Laya_社区 发布时间: 20180504
this.bitmap.activeResource is not a function TypeError: this.bitmap.activeResource is not a function if (bitmap&&bitmap._addReference){ bitmap._addReference(); } 这个代码过滤已经加了,但是会报下面这个错 this.bitmap.activeResource is not a function TypeError: this.bitmap....
来源: Laya_社区 发布时间: 20180403