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

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

541. 部分IOS机型在加载mp3音频文件时出错,资源加载异常 [ 76%]

...图片和音频资源,加载方式如下: var resArray: Array<any> = [             { url: "res/atlas/Images.atlas", type: Laya.Loader.ATLAS },                      { url: "Images/BG_Gray.png", type: Laya.Loader.IMAGE },             { url: "Image...

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

542. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 76%]

...izidongzuo.skel", Laya.Handler.create(this, (templet: Laya.SpineTemplet) => {  //模版复用 let y = 400; let unitWidth = Laya.stage.width / 16; for (let i = 0; i < 16; i++) { let person = templet.buildArmature(); Laya.stage.addChild(person); person.x = i * unitWidth; person.y = y; person.pl...

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

543. 分包项目, 加载js时报错 [ 76%]

...ned     at eval (eval at __proto.complete (AA.max.js:410), <anonymous>:5:68)     at eval (eval at __proto.complete (AA.max.js:410), <anonymous>:24:3)     at eval (<anonymous>)     at AA.__proto.complete (AA.max.js:410)     at EventHandler.__proto.runWith (AA.max.js:674) ...

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

544. Laya ts版,使用jasmine进行单元测试 [ 76%]

...__tests__/Functions.test.tsx/// <reference path="../src/Functions.ts" /> import fs = require('fs'); import vm = require('vm'); let path = __dirname + "/../bin/js/Functions.js"; let code = fs.readFileSync(path, {encoding:'utf8'}); vm.runInThisContext(code); describe('Functions', function() { it...

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

545. 官网的微信小游戏2D例子,发布以后无法运行 [ 76%]

...require (http://127.0.0.1:16026/game/__ ... :96033)     at <anonymous>:1:1     at HTMLScriptElement.scriptLoaded (<anonymous>:18:21)     at HTMLScriptElement.script.onload (<anonymous>:30:20) 2020-03-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

546. laya.d3.math.OrientedBoundBox [ 76%]

...间中一点 OrientedBoundBox  containsPoints(points:Vector.<Vector3>):int 该包围盒是否包含空间中多点 OrientedBoundBox  containsSphere(sphere:BoundSphere, ignoreScale:Boolean = false):int 该包围盒是否包含空间中一包围球 OrientedBoundBox  createByBoundBox(box:Bo...

来源: laya_api 发布时间: 20170929

547. 可以帮我测试一下吗? 使用mask的场景,放着就会出现记忆体用完的讯息? [ 76%]

...{ super (); this.infos = { rotation : 0 }; Laya.timer.frameLoop(1,this,()=> { this.infos.rotation += 1; if (this.infos.rotation >= 360) this.infos.rotation -= 360; this.IM_TURNTABLE.rotation = this.infos.rotation; this.VIEW_TURNTABLE.rotation = this.infos.rotation; }); } } 附件 : --> testMas...

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

548. 如何启用摇一摇 [ 76%]

...var curTime = new Date().getTime()'); __JS__('if ((curTime - last_update) > 100 && canShake == 1){var diffTime = curTime - last_update'); __JS__('last_update = curTime'); __JS__('x = acceleration.x'); __JS__('y = acceleration.y'); __JS__('z = acceleration.z'); __JS__('var speed = Math.abs...

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

549. [LayaNative2]使用最新版2.13.9.3的安卓库会5-7分钟固定断网一次 [ 76%]

...                  W  Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) 2025-11-14 12:33:29.524 31047-31382 LayaBox                        I  WebSocket onSocketCallback connection closing 75 reason 2025-...

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

550. 小游戏安卓不支持filters [ 76%]

...面是部分代码 this.cutLayer.graphics.clear(); for(i = this.lines.length - 1; i >= 0; i--){ var line = this.lines[i]; line.state++; if(line.state > 7){ this.lines.splice(i, 1); } this.cutLayer.graphics.drawLine(line.x1, line.y1, line.x2, line.y2, "#ffffff", this.lineBorder - line.state); }...

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