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

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

1551. 看看这是在打印什么?? [ 38%]

... laya中js 调到 java 那边的方法 是在主线程吗 laya如何重写console.log 打印错误跟信息到自己写的日志面板上 如何确定自己是在Native环境中? worker.js的如何正确使用?所有资源都加载2遍,第一遍是在work.js所在的目录下,第二遍正常...

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

1552. 分享个用美术资源做位图文本的方法。。。 [ 38%]

...,1); var charData: any = this._jsonData.frames[targetChar]; if(!charData){ console.warn("没有找到对应的字符:" + targetChar); continue; } var charSp = this.drawTexture(charData); charSps.push(charSp); } this.charSprites = charSps; this.setCharsPos(); } // 从图集上面抠图 private draw...

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

1553. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 38%]

...nction.Loader.checkNext (http://127.0.0.1:51205/game/code.js:12769:40)[/b] console.error errorReport @ WAGame.js:3 thirdErrorReport @ WAGame.js:3 (anonymous) @ WAGame.js:3 c @ WAGame.js:4 (anonymous) @ WAGame.js:4 function.setTimeout @ gamePage.html:1 (anonymous) @ WAGame.js:3 (anonymous) @ WAGame.j...

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

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

...yer = this._layerMap[layerStr]; if(layer === null || layer === undefined){ console.log(layerNodeName + ' don not match the rule of layer node.'); return; } if(bRemove){ this.removeLayer(target,layer); } else{ this.addLayer(target,layer); } } } } public static removeAllLayers(target) { target.culling...

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

1555. 列表组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 36%]

... { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } class Item extends Laya.Box { static WID: number = 373; static HEI: number = 85; private img: Laya.Image; constructor() { super(); this.size(Item.WID, Item.HEI); this.img =...

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

1556. 单选框组容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 36%]

...r.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } 效果如图所示: (图3-1) Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-16 18:53:02 img{cursor:pointer}

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

1557. 2.12.2beta1 诸多bug [ 35%]

.../span>"; ele.on(Laya.Event.LINK, this, (event: Laya.Event) => { console.log(event); }); Laya.stage.addChild(ele); zyy • 2021-11-09 13:51 @Laya_Fred: 这段代码 很简单 只是点击 输出 event 如果 把Laya.stage.y 向下调整 就会导致它点击区域错误 zyy • 2021-11-09 ...

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

1558. 对象池 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...Laya.Pool.getPoolBySign("Bullet"); // 查看当前对象池内对象数量 console.log( bulletPool.length ); if( bulletPool.length == 0 ) { // 把子弹放入对象池 pool.push( new Bullet() ); } 2.2 清理一个对象池 /** * 清除对象池的对象。 * @param sign 对象类型标识字符。 *...

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

1559. 安装layaair2-cmd一直失败 [ 35%]

...:\COCOS\cocos2d-x-3.17.2\templates;E:\COCOS\cocos2d-x-3.17.2\tools\cocos2d-console\bin;E:\COCOS\Python\Python27;E:\COCOS\apache-ant-1.10.7\bin;C:\Users\Administrator\AppData\Roaming\npm;C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files (x86)\Egret\Egret Wing 3\bin ...

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

1560. TiledMap加载报错 relativePath为空 [ 35%]

...e(0,0,800, 800),Handler.create(this,onMapLoaded)); function onMapLoaded(){ console.log("地图加载完成"); }scence1.json { "height":25, "infinite":false, "layers":[ { "data":[7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 7, 1, 1, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,...

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