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

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

131. layaair2-cmd compile编译报内存溢出 [ 46%]

... 微博 QZONE 微信 liwen1590 赞同来自: error:   FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory     <--- Last few GCs --->   [3456:03E0EAB0] 692136 ms: Mark-sweep 1079.4 (1184.3) -> 1079.0 (1184.3) MB, 1093.1 / 0.0 ms allocation failure GC in old...

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

132. [LayaAir3]关于drawToRenderTexture2D绘制后图像模糊问题补充 [ 45%]

...r rectangle. When true, it starts drawing from (0,0) of the render texture and subtracts the offset of the cache rectangle. When false, it keeps the sprite's original relative position for drawing. * @param flipY Optional. If true, the texture will be flipped vertical. Default is false. * @param cle...

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

133. laya.device.motion.Gyroscope_API3.0 [ 45%]

...见https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Orientation_and_motion_data_explained。 info: RotationInfo类型参数,保存设备的旋转值。 浏览器兼容性参见:http://caniuse.com/#search=deviceorientation Hierarchy EventDispatcher Gyroscope Index Constructors constructo...

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

134. [LayaAir3]Laya3.x graphics.drawCurves 闪烁的问题 [ 45%]

...!== 0) { throw new Error("At least two points (four numbers) are required, and the total number of values must be even"); } this.points = points; } private static distance(x1: number, y1: number, x2: number, y2: number): number { let dx = x2-x1; let dy = y2-y1; return Math.sqrt(dx*dx+dy*dy); } priva...

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

135. 使用layaAirIDE打包APK问题 [ 45%]

...aair.game.browser.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 这种错误。 apk打包时无论我选择是否是单机版(非单机版已经把index.html和相关资源放到了一个可访问的http服务器了),最终运行都是上面的错误 请问下...

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

136. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 45%]

... this.loadFont(); }   loadFont() { const  BitmapFont = Laya.BitmapFont, Handler = Laya.Handler;   Laya.loader.load([{     url: ['res/bitmapFont/test.fnt'],     type: Laya.Loader.FONT }], Handler.create(this, () => {             console.log('bitmapFont loaded');               ...

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

137. 引擎代码严重问题 导致react报错 [ 44%]

... occurred; use the non-minified dev environment for the full error message and additional helpful warnings. jacksing888 • 2017-03-21 11:19 这里更加合理的做法应该是 自己封装一个函数 去调用 才是比较合理的 尽量少去污染全局的东西 cuixueying • 2017-03-21 11:19...

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

138. Spine渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...型,否则不会把json认为是SPINE资源 Laya.loader.load("girl2/mix-and-match-pro.json", Laya.Loader.SPINE).then(() => { // 添加Spine渲染器组件到精灵节点上 this.spine = this.owner.addComponent(Laya.Spine2DRenderNode); this.spine.source = "girl2/mix-and-match-pro.json"; // 设...

来源: Laya3.0_文档 发布时间: 20251128

139. [0]laya-zip让你的游戏加载速度提升350%!! [ 39%]

...定文件资源。[size=14][code]// Loads the file at the specified path and uses it Laya.loader.create([{ url: "xx.zip", type:"ZIP",constructParams:["xx/xxx1.lh","xx/xxx2.lh"]}], Laya.Handler.create(this, () => { let player1 = Laya.loader.getRes("xx/xxx1.lh").clone(); let player2 = Laya.loader.g...

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

140. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 38%]

... this.width + ' ' + this.height + '" ';             // set svg width and height             data += 'width="' + this.width + '" height="' + this.height + '">';             data += '<defs>';             // set gradient             data += '<linearGradient id=...

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