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

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

151. 混合模式-Lighter [ 64%]

...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_示例 发布时间: 20240930

152. 混合模式-Lighter [ 64%]

...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_示例 发布时间: 20240930

153. layacmd atlas怎么指定输出的数据后缀为json? [ 64%]

...    -V, --version     output the version number     -c --clear        clear will delete old ui code file.     -a --atlas        generate atlas     -d --code         generate ui code files     -m --mode <mode>  'normal'或...

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

154. laya.resource.HTMLCanvas_API3.0 [ 64%]

...ute referenceCount source width cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory clear destroy event getContext getMemSize getTexture hasListener isCreateFromURL off offAll offAllCaller on once release size toBase64 toBase64Async de...

来源: Laya3.0_api 发布时间: 20231115

155. 分享:DrawToCanvas内存释放问题! [ 63%]

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

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

156. laya.d3.component.volume.batchvolume.StatiVertexMergeBatchRender_API3.0 [ 62%]

... sharedMaterials volume Methods _addList _applyReflection _batchOneRender _clear _cloneTo _initialize _removeOneRender _restorRenderNode _setOwner _updateOneRender addList destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate ...

来源: Laya3.0_api 发布时间: 20231115

157. laya.ani.GraphicsAni_API3.0 [ 62%]

...hicsAni Index Constructors constructor Accessors cmds Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd...

来源: Laya3.0_api 发布时间: 20231115

158. Animation创建和销毁的问题 [ 62%]

...代码,第一次创建就可以显示动画,然后当使用了Loader.clearRes之后再次创建就怎么都显示不了,是哪里用错了么?求指点 附件里上传了测试工程,打开后先按A键可以看到屏幕有两条鱼,然后再按空格将其彻底移除,然后再按A键...

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

159. laya.d3.core.material.PBRMaterial_API3.0 [ 61%]

...ion blendEquationAlpha blendEquationRGB blendSrc blendSrcAlpha blendSrcRGB clearCoat clearCoatEnable clearCoatNormalTexture clearCoatRoughness clearCoatRoughnessTexture clearCoatTexture cpuMemory cull depthTest depthWrite destroyed detailAlbedoTexture detailNormalScale detailNormalTexture detailTili...

来源: Laya3.0_api 发布时间: 20231115

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

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

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