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

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

541. 如果强制关闭浏览器窗口?下面的代码没有效果 [ 76%]

...接口 function closeWebPage() { if (navigator.userAgent.indexOf("MSIE") > 0) { if (navigator.userAgent.indexOf("MSIE 6.0") > 0) { Laya.Browser.window.opener = null; Laya.Browser.window.close(); } else { Laya.Browser.window.open('', '_top'); Laya.Browser.window.top.close(); } } else if (naviga...

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

542. 包管理器与资源包导入 · LayaAir3.4 · 引擎文档 · LAYABOX [ 76%]

...能是IDE导出的资源包.layapkg后缀),操作路径为:工具 -> 从网络导入资源包,如图2-4所示。 (图2-4) 其它流程与前文一致。 2.3 本地导入资源包 如果资源包是存在IDE本地硬盘中,也可以直接从本地导入,操作路径为:工具 -&g...

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

543. Native 如何使用ttf? [ 76%]

...se); setInterval(onDrawFrame, 15); }; xhr.onerror = function (e) { alert('>>>download ttf error :' + e); }; xhr.send(null); //这里以html5标准canvas接口为例 function onDrawFrame() { Laya.Browser.context.save(); Laya.Browser.context.font = "Arial"; Laya.Browser.context.fillStyle = "#...

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

544. 部分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

545. 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

546. 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

547. 分包项目, 加载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

548. 官网的微信小游戏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

549. 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

550. 可以帮我测试一下吗? 使用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