• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 434 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0045 秒)

101. drawcall 已经从之前的接近200优化到 80几,但是手机打开h5页面还是很卡,基本只有30-40帧 [ 68%]

...发现 是我们的 cacheAs 设置有问题,很多地方都设置成了 bitmap,为啥会这样了? kezhiyu • 2018-05-23 10:27 这个bitmap 不是webgl情况下 渲染最佳吗 kezhiyu • 2018-05-23 11:20 @180*****858:在启用了cacheAs 貌似drawcall 变得更多了。。你不如关闭所...

来源: Laya_社区 发布时间: 20180521

102. 这种进度条怎么实现? [ 67%]

...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

103. 3.0.3版本发布Web,运行有很大概率会出现gammaCorrection相关错误的的问题 [ 67%]

...问题,在浏览器断点遇到异常时暂停就发现textureHost这个bitmap为null,诡异的是IDE直接运行调试这个bitmap不为null (引擎的Value2D.ts,121行),所以还是得麻烦官方想想会是什么问题导致的 Laya_phhh • 2023-08-25 19:17 我们没复现的问题我...

来源: Laya_社区 发布时间: 20230824

104. setSubPixels画布擦除不掉 [ 66%]

...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

105. 最新版本 1.7.5 beta fontClip [ 65%]

...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

106. Sprite-新手引导 [ 65%]

...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

107. Sprite-新手引导 [ 65%]

...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

108. Laya中Button等组件lose skin的问题 [ 65%]

...   }         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

109. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 64%]

...的。 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

110. 微信小游戏中开放域(子域)只支持使用 2D 渲染模式,导致主域(用Laya.WebGL模式渲染)卡顿,如何解决? [ 64%]

...看到有人回复就很欣慰了! 我根本就没有写: 纹理对象.bitmap.alwaysChange = true; 如果您认为是这个原因,我加上一句: 纹理对象.bitmap.alwaysChange = false; 用手机测试还是卡!

来源: Laya_社区 发布时间: 20180829