大约有 1,779 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0082 秒)
...s.create(); this.scene3d.addChild(sp3); }); }) } printProgress(res: any) { console.log("加载进度" + JSON.stringify(res)); } } 代码中printProgress会打印加载进度日志,效果如下所示: (图4-2) Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间...
来源: Laya3.0_文档 发布时间: 20251010
...andler.create(this,loadComplete));//加载资源 function loadComplete() { console.log("资源加载完成!"); var button = new laya.ui.Button("resource/ui/button.png","label");//创建一个 Button 类的实例对象 button ,传入它的皮肤skin和标签label。 button.x =100;//设置 button ...
来源: Laya3.0_api 发布时间: 20231115
...andler.create(this,loadComplete));//加载资源 function loadComplete() { console.log("资源加载完成!"); var checkBox:laya.ui.CheckBox= new laya.ui.CheckBox("resource/ui/check.png", "这个是一个CheckBox组件。");//创建一个 CheckBox 类的类的实例对象 checkBox ,传入它的皮...
来源: Laya3.0_api 发布时间: 20231115
...,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
...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
...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
...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
... { 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
...Laya.Pool.getPoolBySign("Bullet"); // 查看当前对象池内对象数量 console.log( bulletPool.length ); if( bulletPool.length == 0 ) { // 把子弹放入对象池 pool.push( new Bullet() ); } 2.2 清理一个对象池 /** * 清除对象池的对象。 * @param sign 对象类型标识字符。 *...
来源: Laya3.0_文档 发布时间: 20251010
...:\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