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

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

41. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 63%]

...deName = ''; let prefix = 'culling_mask='; for(let i = 0; i < target.numChildren; ++i){ let child = target.getChildAt(i); if(child.name.indexOf(prefix) == 0){ layerNodeName = child.name.replace(prefix,''); child.destroy(); break; } } if(!layerNodeName){ return; } let arr = layerNodeName.split('|'...

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

42. 安装layaair2-cmd一直失败 [ 63%]

...    at EventEmitter.emit (events.js:210:5) 31944 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 31944 verbose stack     at ChildProcess.emit (events.js:210:5) 31944 verbose stack     at maybeClos...

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

43. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 62%]

...n/env node const program = require('commander'); const { fork } = require('child_process'); const path = require('path'); program.parse(process.argv); const projPath = path.join(__dirname, '../'); const layaCompileDir = path.join(projPath, '.laya'); const gulpFilePath = path.join(layaCompileDir, 'co...

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

44. 分包后, 资源加载问题 [ 61%]

...)"); //此行报错 var load:* = __JS__('new loading100()'); Laya.stage.addChild(load); trace("loading100..."); }   这个loading100.js: (function(window,document,Laya){ console.log("kk1") var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__getset=Laya.getset,__newvec=Laya.__n...

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

45. Dialog 第一次打开总是出现在窗口右下角,这是为啥,再打开就正常剧中了? [ 61%]

..."label":"Dialog", "isOpen":true, "isDirectory":true, "isAniNode":true, "hasChild":true, "compId":2, "child":[ { "x":15, "type":"Image", "searchKey":"Image", "props":{"y":98,"x":450,"skin":"assets/dialog/bg_01001.png","scaleY":1,"scaleX":1}, "nodeParent":2, "label":"Image", "isDirectory":false, "isAn...

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

46. 正常运行的2.1升级到2.2.0出现循环依赖的错误,这是咋回事丫 ? [ 60%]

... "D:\Users\Administrator\Personal\myLaya2.2\Client\src\tsconfig.json"  at ChildProcess.exithandler (child_process.js:217:12) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:194:7) at maybeClose (internal/child_process.js:899:16) at Process.ChildProcess._handle.onexit (internal/child_p...

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

47. 你们编辑器中把xml转化成json能不能共享给我 [ 57%]

...序没有了; 我看你们layaUI.max.all.js, 转化成"props":{...},"child":[...]格式 这就是我想要的效果,实现这个转化的代码能不能共享给我 2016-12-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

48. laya.ui.LayoutBox_API3.0 [ 55%]

...gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scrollRect skewX skewY space stage staticCache texture timer toolTip top transform url viewport visible width x y zOrder Methods _initialize _processActive addC...

来源: Laya3.0_api 发布时间: 20231115

49. ts项目,我在程序主入口声明了公共静态类,下面new出了一个对象,把他添加到舞台中出错。 [ 55%]

...tic GameStart:GameStart; GameMain.GameStart=new GameStart(); Laya.stage.addChild(GameMain.GameStart); 报错:file: 'file:///e%3A/LAYABOX/CaiCi/src/GameMain.ts' severity: '错误' message: 'Argument of type 'GameStart' is not assignable to parameter of type 'Node'. Property '_childs' is missing in ...

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

50. laya.ui.VBox_API3.0 [ 55%]

...gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scrollRect skewX skewY space stage staticCache texture timer toolTip top transform url viewport visible width x y zOrder Methods _initialize _processActive _set...

来源: Laya3.0_api 发布时间: 20231115