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

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

71. 插件开发说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 51%]

...ort xx from "xx"的方式,所有IDE内置cjs模块都可以通过IEditor.require或者IEditorEnv.require去引用。 //可以通过import导入node内置模块 import fs from "fs"; import path from "path"; //也可以通过require const fs = IEditor.require("fs"); const sharp = IEditor.require("sh...

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

72. 借助AMD来解决HTML5游戏开发中的痛点 [ 51%]

...用LayaIDE来创建项目,因为要使用LayaAir引擎的库文件。 ## requirejs 从requirejs官方下载库文件,目前的最新版本是2.3.4,这是下载链接[http://requirejs.org/docs/rele ... re.js][lib]。把下载的库文件放入`./bin`目录,并且在index.html增加文件引...

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

73. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 50%]

...的报错Uncaught ReferenceError: loadLib is not defined at index.js:11 at require (WAGameSubContext.js:3) at subcontext.html:11 开放域代码到底怎么发布到主域呢 Max.魚魚魚鱼魚魚 • 2019-02-16 10:11 楼主问题解决了吗?方便的话,能分享一下2.0制作排行榜的dem...

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

74. layaAir TS项目如何引用protoBuf库? [ 50%]

...内容: package awesomepackage;   message AwesomeMessage {       required string awesomeField = 1;  }     放在laya/proto下面,proto这个文件夹没有请自己创建。   2、在bin下的index.html里的这个位置,看粗体部分,protobuf.js在项目里已经存在了,不...

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

75. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 50%]

...ble rectangular area). If the rectangular collision area does not meet the requirements, you can use the drawing area of the hit area as the collision area. The hit area takes precedence over width and height of node as the non-penetrable mouse collision area. * Note that for UI object nodes with a ...

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

76. 用npm的protobuf导出的ts代码。然后用import { } from "" 运行到这里没反应,不继续执行,也不报错。 [ 49%]

...不到protobufjs这个模块 2 导出的.js文件也报错var $protobuf = require("protobufjs/minimal");括号内的模块也是找不到     请问您那是怎么弄的?   2018-03-21 0 2 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 可以参考下附件中的Demo TSimportRequ...

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

77. [LayaAir3]Laya3.x graphics.drawCurves 闪烁的问题 [ 48%]

...ength % 2 !== 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...

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

78. Laya2.0导入protobufjs第三方库,报错找不到文件 [ 47%]

...方库,报错找不到文件  Laya2.0 在Main.ts里:import protoAll = require("../libs/protoAll"); var pCls = protoAll.com.bee.protobuf.ClimbingTowerInfoProto; var p: protoAll.com.bee.protobuf.ClimbingTowerInfoProto = pCls.create(); p.curId = 10; p.isSecondPass = true;   用了第三方库prot...

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

79. laya2.8.0IDE工具中打安卓包(LayaNative版本相同),无法加载游戏启动页 [ 47%]

...com.layabox.run.*//LayaCache//appCache/da25d557/filetable.txt I/LayaBox:  require(/sdcard/layabox/scripts/config.js) I/LayaBox: found the file in the package:scripts/config.js I/LayaBox: JSRuntime::callMethod {} demo.J*ridge bgColor     JSRuntime::callMethod {} demo.J*ridge setFontColor I/LayaBox...

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

80. 自定义场景继承导出,会在自定义类中加入Laya.前缀导致layaMaxUI文件报错 [ 47%]

...ya前缀"]; }else{     prevTasks = ["替换Laya前缀"] }  const fs = require("fs");  function readFile(path) {     if (fs.existsSync(path)) {         return fs.readFileSync(path, "utf-8");     }     return null; } gulp.task('替换Laya前缀', function(){          ...

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