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

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

301. 我二进制资源load之后,为什么通过getRes获取不到。 [ 69%]

...ndler.create(this, this.onProcess), null, 1, false); } onComplete(e,a,b) { console.log('资源加载完成!!',e,a,b); var cfg = Laya.Loader.getRes("config/data.txt"); console.log('cfg===',cfg, Laya.Loader.groupMap); } 2018-08-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

302. 关于截屏的问题 [ 69%]

...但是报错了,,能帮忙看下怎么处理吗?   代码如下: console.log("onCharge-------------------------1"); if( Laya.Browser.window.conch ) { console.log("onCharge-------------------------2"); Laya.Browser.window.conch.captureScreen(function(arrayBuff,width,height){ console.log("onC...

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

303. [LayaAir3]clickHandler只会执行一次,之后点击不再触发 laya.3.0.9 [ 69%]

...,例如节点被添加到舞台后     onEnable(): void {         console.log("2d gamescene onEnable");                  let btn:Laya.Button = LayaUtil.GetChildByPath(this.owner, "CreatePanel/BtnCreate");                 btn.clickHandler = Laya.Handler.create(this, this.onCl...

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

304. laya3.0中jszip使用异常 [ 69%]

...         (zipData: JSZip) => {                         console.log(zipData.files);                         for (let i in zipData.files) {                             console.log(`key=${i},value=${zipData.files[i]}`);                         } ...

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

305. 音乐播放 position 和 duration 问题 [ 69%]

...说一下思路?或者上完成的代码? LoseFocus(){         console.log("失去焦点")          this.NowPlayMusic.stop();      }     GetFocus(){         console.log("获取焦点");          Laya.SoundManager.stopMusic();         Laya.SoundM...

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

306. 有关Laya3D碰撞检测疑问 [ 69%]

...体";  Laya.timer.frameLoop(1, this, this.checkHit);  this.loadUI();  console.log("碰撞结果:" + boxCollider1.boundBox.containsSphere(cylinder.meshRender.boundingSphere)); console.log("碰撞结果:" + boxCollider1.boundBox.containsBoundBox(cylinder.meshRender.boundingBox)); console.log("碰...

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

307. 加载预制体json,返回值不统一 [ 69%]

...n", Laya.Handler.create(this, function (obj) {             console.log('hero',obj);         }), null, Laya.Loader.PREFAB);         Laya.loader.create("prefab/WeiTiao.json", Laya.Handler.create(this, function (obj) {             console.log('WeiTiao',...

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

308. 多次加载一个页面出现_$P为null的情况 [ 69%]

...r.getUserGold(); if(gold > 500){ Online.joinGame().then(function(data){ console.log(data); StorageHelper.setDeskNo(data.desk.deskNo); StorageHelper.setDeskSeat(data.ownSeatNo); Laya.stage.destroyChildren(); var playSence = new OnlinePlaySence(data); Laya.stage.addChild(playSence); },function(data...

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

309. vivo小游戏 LayaIDE2.2.0使用fairygui报错 [ 68%]

...], Laya.Handler.create(this, this.onLoaded)); }  onLoaded(): void {     console.log('===================ss');      console.log('sssss', fgui.GRoot.inst.displayObject);     Laya.stage.addChild(fgui.GRoot.inst.displayObject);       fgui.UIPackage.addPackage("res/Basics");          ...

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

310. Laya下的图片上传示例(完整版) [ 68%]

...y):void { if(file.files.length>0) { if(20*1024<file.files[0].size) { console.log("图片大小不能超过20kb!") }else{ fileReader.readAsDataURL(file.files[0]); //转换图片格式为字符编码 } } }; fileReader.onload = function(e):void { if(Laya.Browser.window.FileReader.DONE == fileRead...

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