大约有 434 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0045 秒)
Laya_社区(228) Laya2.0_api(64) Laya3.0_api(62) laya_api(56) Laya2.0_文档(16) Laya3.0_文档(5) Laya2.0_示例(2) Laya_示例(1)
...发现 是我们的 cacheAs 设置有问题,很多地方都设置成了 bitmap,为啥会这样了? kezhiyu • 2018-05-23 10:27 这个bitmap 不是webgl情况下 渲染最佳吗 kezhiyu • 2018-05-23 11:20 @180*****858:在启用了cacheAs 貌似drawcall 变得更多了。。你不如关闭所...
来源: Laya_社区 发布时间: 20180521
...0 constructor() { super() this._init() } private _init() { this.cacheAs = "bitmap" this.size(this.DEF_SIZE,this.DEF_SIZE) this.pos(200,200) this.cacheAs = "bitmap" this.graphics.drawPie(this.DEF_SIZE >> 1, this.DEF_SIZE >> 1, this.DEF_SIZE >> 1,-90,this.startY,'#ff0000') this.$circ...
来源: Laya_社区 发布时间: 20180123
...问题,在浏览器断点遇到异常时暂停就发现textureHost这个bitmap为null,诡异的是IDE直接运行调试这个bitmap不为null (引擎的Value2D.ts,121行),所以还是得麻烦官方想想会是什么问题导致的 Laya_phhh • 2023-08-25 19:17 我们没复现的问题我...
来源: Laya_社区 发布时间: 20230824
...h//tex.height; let w = tex.width; let h = tex.height; ctx.size(w,h); ctx.asBitmap = true; // ctx.clearRect(0,0,w,h); let _targets= ctx['_targets']; _targets.start(); ctx.clear(); this.drawTex(ctx,this.bUrl,x,0); // this.drawTex(ctx,this.cUrl,x,0); ctx.flush(); _targets.end(); _targets.restore(); let...
来源: Laya_社区 发布时间: 20230328
...int):void { _index = value; if (_bitmap && _sources) { this.graphics.clear(); var splitArr:Array = value.toString().split(''); for (var i:int = 0; i < splitArr.len...
来源: Laya_社区 发布时间: 20170601
...r = new Sprite(); // 设置容器为画布缓存 guideContainer.cacheAs = "bitmap"; Laya.stage.addChild(guideContainer); gameContainer.on("click", this, nextStep); //绘制遮罩区,含透明度,可见游戏背景 var maskArea = new Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0...
来源: Laya_示例 发布时间: 20241001
...w Sprite(); Laya.stage.addChild(guideContainer); guideContainer.cacheAs = "bitmap"; // 绘制遮罩区,含透明度,可见游戏背景 maskArea = new Sprite(); guideContainer.addChild(maskArea); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000"); ...
来源: Laya2.0_示例 发布时间: 20241001
... } if (this._autoSize){ this._bitmap.width=this._width || width; this._bitmap.height=this._height || height; if (this._text){ this._text.width=this._bitmap.width; ...
来源: Laya_社区 发布时间: 20191122
...的。 this.guideContainer = new Sprite(); this.guideContainer.cacheAs = "bitmap"; Utils.GuideLayer.addChild(this.guideContainer); this.guideContainer.on(Laya.Event.CLICK, this, this.nextStep); this.mouseEnabled = false; var maskArea: Laya.Sprite = new Laya.Sprite(); maskArea.alpha = 0.5; maskArea.g...
来源: Laya_社区 发布时间: 20171222
...看到有人回复就很欣慰了! 我根本就没有写: 纹理对象.bitmap.alwaysChange = true; 如果您认为是这个原因,我加上一句: 纹理对象.bitmap.alwaysChange = false; 用手机测试还是卡!
来源: Laya_社区 发布时间: 20180829