大约有 1,831 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0055 秒)
Laya_社区(1432) Laya3.0_api(161) Laya2.0_api(107) laya_api(70) Laya2.0_文档(34) Laya3.0_文档(23) Laya2.0_示例(2) Laya_示例(2)
...无效。只有手动设置color才能生效。 public static setGray(node: Laya.Node, set: boolean) { for (var i = 0; i < node.numChildren; i++) { let sprite = node.getChildAt(i) as Laya.Sprite; if (sprite) { ...
来源: Laya_社区 发布时间: 20170717
...s [19:37:56] Starting 'default'... 出错了: TypeScript error: ../../../node_modules/@types/node/index.d.ts(26,22): Error TS6053: File '../../../node_modules/@types/node/inspector.d.ts' not found. 2018-11-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...
来源: Laya_社区 发布时间: 20181101
... 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
...点全局坐标获取函数, 注释的代码是之前的 export const getNodeGlobal = (node: Laya.Sprite, outPoint?: Laya.Point): Laya.Point => { let point: Laya.Point = outPoint || new Laya.Point() point.setTo(0, 0) // point.setTo(node.globalTrans.x, node.globalTrans.y) 这个...
来源: Laya_社区 发布时间: 20250728
... Boolean[read-only] 获取是否为单实例组件。 Component owner : Node [只读]获取所属Node节点。 ComponentPublic Methods MethodDefined By Component() 创建一个新的 Component 实例。 Component destroy():void 销毁组件 Component onReset():void 重置组件参数...
来源: Laya2.0_api 发布时间: 20190513
...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_示例 发布时间: 20251209
...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_示例 发布时间: 20251209
... 下面是缓存的过程 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
...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
....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