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

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

61. 混合模式-Lighter [ 79%]

...onTweenComplete() { this.evalBgColor(); } renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, this.getHexColorString()); } getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChannels.g = 0; //o...

来源: Laya2.0_示例 发布时间: 20251209

62. 混合模式-Lighter [ 78%]

...eenComplete() { evalBgColor(); } function renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, getHexColorString()); } function getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChannels.g = 0;...

来源: Laya_示例 发布时间: 20251209

63. 最新版本 1.7.5 beta fontClip [ 78%]

... (_bitmap && _sources) {                 this.graphics.clear();                 var splitArr:Array = value.toString().split('');                 for (var i:int = 0; i < splitArr.length; i++) {                     var te:Texture = _sources...

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

64. 火狐浏览器上webgl异常 [ 78%]

...has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow. async.race.0._hash.e3a9c451.js%20line%20297%20%3E%20eval:4:30925 Error: WebGL: texSubImage2D: This operation requires zeroing texture data. This is slow. 如题 这可能是什么引起的? 2017-...

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

65. Laya.timer.loop(delay, caller, method) [ 77%]

... can not find method signature 反射错误 Laya.timer.loop 的 Laya.timer.clear 问题 Timer.clear清理同caller同method的多个loop Laya.timer.loop() 报错 Cannot read property 'loop' of null 问题状态 最新活动: 2018-05-05 16:22 浏览: 1216 关注: 2 人 139*****737 • 2018-05-06 08:4...

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

66. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 77%]

...pos = bian * 0.5; } public function set360(value:int):void { this.graphics.clear(); if(value == -1){ return; } this.graphics.drawPie(pos,pos,r,START+(360 - value), 270 , COLOR ,null,0); } private function ef():void { if( TheGame.GetServerTime() > endTime ){ this.stop(); return; } var now:int = ( ...

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

67. 写的更换纹理的代码不生效,大佬帮忙看一下。(工程附件已经上传) [ 77%]

...来自:                 //以下三行为不生效代码,clear()没有能够清除这个节点的纹理                 (this.owner as Laya.Sprite).graphics.clear();                 var t: Laya.Texture = Laya.loader.getRes("puzzlePic/pi-" +thi...

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

68. 裁切图片后,该用什么方式去重绘出裁切后的图片 [ 77%]

...下来的部分,但黄色的原图一直还在,即便调用了graphics.clear()方法   这是我重绘部分的代码,我是应该用sprite.graphics去重绘,还是该调用Laya.Render.context中的方法去重绘,绘制部分代码如下(points,是我裁切后的多边形位置点数...

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

69. WebSocket发送与接收数据(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 76%]

...里是把字节数组的数据通过socket发送给服务器。 this.byte.clear();//清除掉数据;方便下次读写; ``` 上面我们看到,通过一个字节数组把我们需要的数据读入一个Byte数组,最后发送给服务器的是`byte.buffer`,这是一个ArrayBuffer的数据类...

来源: Laya2.0_文档 发布时间: 20210714

70. 分享:DrawToCanvas内存释放问题! [ 76%]

...0+count;//每次截屏后,位置改变,便于观察效果 sp2.graphics.clear(); sp2.graphics.drawTexture(texture,0,0,800,800);//绘制texure纹理到sp2 Laya.stage.addChild(sp2);//将sp2添加到舞台并显示 } } } 可以通过上面Texture的方式对截屏后的纹理进行绘制显示,也...

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