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

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

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

...,例如节点被添加到舞台后     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

352. laya3.0中jszip使用异常 [ 68%]

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

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

353. 预加载结束之后还是报lose skin [ 68%]

...is.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetLoaded(texture:Laya.Texture){ console.log("加载结束"); } Log输出内容 Warning!,this class[MiniAdpter] already exist: Object {} 加载进度: 0.3 加载进度: ...

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

354. 音乐播放 position 和 duration 问题 [ 68%]

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

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

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

...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

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

...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

357. 有关Laya3D碰撞检测疑问 [ 67%]

...体";  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

358. 怎么才能像HTML5中那样直接操作Canvas [ 67%]

...10, 150, 150,"red"); ctx.fillText("texttt",100,100,"","#ffffff","center"); console.log("draw complete"); 2017-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: LayaAir也是基于canvas...

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

359. 在线急等,发现你们这个编译器一个bug,不能实现负负得正 [ 67%]

...moveDownBall = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.stageHeight ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; } if (this.ball.x + this.vx >= this.st...

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

360. vivo小游戏 LayaIDE2.2.0使用fairygui报错 [ 67%]

...], 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