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

大约有 796 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)

131. 关于drawPie 的效率问题,性能不够好的手机怎么优化? [ 76%]

关于drawPie 的效率问题,性能不够好的手机怎么优化? graphics.drawPie 做环形倒计时,比如每50毫秒执行一次,在许多配置不是很高的手机上,出现卡顿延迟的现象,有办法优化吗 2018-03-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

132. flag的问题 [ 76%]

...  var color = (flag = !flag)?"#A52A2A":"#FFA500"         c.graphics.clear();         c.graphics.drawRect(50, 50, 300, 100, color);         Laya.stage.addChild(c);     } })();   2017-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

133. 点击区域问题 [ 76%]

...算了,偏复杂。 另一个是sprite.mouseThrough = true;加上sprite.graphics.drawRect。但是遇到个问题是sprite.graphics多了好像我的小米2s会掉帧(十几个150*100的矩形就掉到55以下)。 那么问题来了,有什么简单的确实可行的方案能让负坐标能...

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

134. laya中的截屏在WebGL下为什么无效呢? [ 76%]

...照特效 this._shapeSnapEffect = new egret.Shape; this._shapeSnapEffect.graphics.beginFill( 0xFFFFFF ); this._shapeSnapEffect.graphics.drawRect( 0, 0, L.W_CLIP, L.H_CLIP ); this._shapeSnapEffect.graphics.endFill(); this._shapeSnapEffect.cacheAsBitmap = true; this._shapeSnapEffect.x = this._bmpSnap....

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

135. 安卓机截图变成黑块,ios和pc没问题 [ 76%]

...色块了private function test():void { var sp1:Sprite = new Sprite(); sp1.graphics.drawRect(0,0,300,200,"#ff0000"); var htmlCanvas:HTMLCanvas = sp1.drawToCanvas(300,200,0,0); Laya.timer.once(1000,this,function():void{ var texture:Texture = new Texture(htmlCanvas); var sp2:Sprite = new Sprite(); sp2...

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

136. [LayaAirIDE3]2d相机打包后问题 [ 76%]

...a.loader.getRes("res/building.png");                 this.building.graphics.drawTexture(texture, 0, 0);             }),             null,             Laya.Loader.IMAGE         );     }      // 可视化边界     private visualizeBoundaries() {         const ...

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

137. 支不支持多个Texture 拼接成一张图片! [ 75%]

...g 赞同来自: a13121527420 支持,你可以获取多个texture,让sp.graphics.drawTexture(aa),sp.graphics.drawTexture(bb)这样连续去写即可! 2017-03-21 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 a13121527420 哇啦哇...

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

138. 滤镜问题,有复现demo [ 75%]

...tn.fitlers = null,这时舞台绘画的消失了???? */ Laya.stage.graphics.drawRect(200, 200, Laya.stage.width / 2, Laya.stage.height / 2, "#ffff00"); var btn:Sprite = new Sprite(); btn.size(200, 100); btn.graphics.drawRect(0, 0, btn.width, btn.height, "#ff00ff"); Laya.stage.addChild(btn); ...

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

139. ani 如何 更改某一帧的 skin ,, [ 75%]

...ica - 知识达人 赞同来自: ani.index是当前播放到哪一帧 ani._graphics._one[0]是一个Texture 你自己加个判断,如果播放到了你要改变皮肤那一帧的话你就改变ani._graphics._one[0] 2017-10-25 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...

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

140. 关于mouseThrough设计原理问题? [ 75%]

...果的,这样设计是不是有问题?var a:Sprite = new Sprite(); a.graphics.drawRect(0,0,200, 200, "#00ff00"); a.size(200, 200); a.pos(0, 0); a.on(Event.CLICK, null, function(e:Event):void{ trace("click a"); }) Laya.stage.addChild(a); var b:Sprite = new Sprite(); b.graphics.drawRect(0,0,200, 2...

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