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

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

351. 编译时报错 [ 84%]

... Error: Invalid number at error (D:\tools\LayaAirIDE_beta2.5\resources\app\node_modules\rollup\dist\rollup.js:9402:30) at Module.error (D:\tools\LayaAirIDE_beta2.5\resources\app\node_modules\rollup\dist\rollup.js:13340:9) at tryParse (D:\tools\LayaAirIDE_beta2.5\resources\app\node_modules\rollup\dis...

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

352. laya.components.Component [ 83%]

... Boolean[read-only] 获取是否为单实例组件。 Component  owner : Node [只读]获取所属Node节点。 ComponentPublic Methods  MethodDefined By  Component() 创建一个新的 Component 实例。 Component  destroy():void 销毁组件 Component  onReset():void 重置组件参数...

来源: Laya2.0_api 发布时间: 20190513

353. 网络和格式-ProtocolBuffer [ 83%]

...w Error(errMsg); // Encode a message to an Uint8Array (browser) or Buffer (node) var buffer = AwesomeMessage.encode(message).finish(); // ... do something with buffer // Or, encode a plain object var buffer = AwesomeMessage.encode( { awesomeField: "AwesomeString" }).finish(); // ... do something wit...

来源: Laya_示例 发布时间: 20240930

354. 网络和格式-ProtocolBuffer [ 83%]

...w Error(errMsg); // Encode a message to an Uint8Array (browser) or Buffer (node) var buffer = AwesomeMessage.encode(message).finish(); // ... do something with buffer // Or, encode a plain object var buffer = AwesomeMessage.encode( { awesomeField: "AwesomeString" }).finish(); // ... do something wit...

来源: Laya2.0_示例 发布时间: 20240930

355. LayaBox进阶之UI管理类 [ 83%]

...   下面是缓存的过程 setView private setView(clazz: any, view:Laya.Node):void{ let v: Laya.Node = this.getView(clazz); if(!v){ let uiData = {clazz: clazz, view: view}; this.uiList.push(uiData); } }首先判断本地缓存有没有,有的话 不处理,没得话,创建,push到数组中...

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

356. laya绘制图形进行缩放的时候有问题 [ 83%]

...0.5) { this.scaleX -= 0.1; this.scaleY -= 0.1; for (var i = 0; i < this.nodes.length; i++) { this.nodes[i].scaleX += 0.1; this.nodes[i].scaleY += 0.1; } } else if (e.delta < 0 && this.scaleX <= 1.5) { this.scaleX += 0.1; this.scaleY += 0.1; for (var i = 0; i < this.nodes.length; ...

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

357. 引擎基础概念 · LayaAir3.0文档 · LAYABOX [ 83%]

...、节点、显示列表、显示对象、容器对象 LayaAir引擎中,Node(节点)类是可放在显示列表中的所有对象的基类,2D的基础精灵Sprite与3D的基础精灵Sprite3D都继承于Node,不仅于此,所有继承于Node的子类或孙类,也可称为节点,例如...

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

358. IDE报错,不知道什么鬼问题 [ 83%]

....js [10:19:47] Starting 'compile'... 出错了: TypeScript error: ../../../node_modules/@types/node/index.d.ts(53,22): Error TS6053: File '../../../node_modules/@types/node/base.d.ts' not found. 2.0的又报这个,是什么问题呢

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

359. 编译异常 Note that you need plugins to import files that are not JavaScript [ 82%]

... files that are not JavaScript) at error (D:\LayaAirIDE2.3.0\resources\app\node_modules\rollup\dist\rollup.js:9402:30) at Module.error (D:\LayaAirIDE2.3.0\resources\app\node_modules\rollup\dist\rollup.js:13340:9) at tryParse (D:\LayaAirIDE2.3.0\resources\app\node_modules\rollup\dist\rollup.js:13255:...

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

360. 新创建2D空项目工程(TS) 编译出错 [ 82%]

...pile.js [15:26:11] Starting 'compile'...  出错了: TypeScript error: ../node_modules/@types/node/index.d.ts(37,22): Error TS6053: File '../node_modules/@types/node/inspector.d.ts' not found.  这是新创建的项目 没有任何代码和修改!   进一步提示:关闭LayaIDE,进入%user...

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