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

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

381. [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.onClickCreate...

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

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

383. native打包Android APP 运行一段时间opengl报错导致app重启 [ 68%]

...致app重启 打包app运行一段时间,发现重新调用oncreate,看log发现opengl报错。 log如下: 2018-11-23 17:28:52.456 1657-1657/com.android.bluetooth E/BluetoothMapService: Unexpected error! 2018-11-23 17:28:52.459 10354-10354/com.xzgame.rainbow E/LayaBox: >>>>>>...

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

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

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

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

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

...a.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',obj);  ...

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

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

...rGold(); 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){ conso...

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

387. 有关Laya3D碰撞检测疑问 [ 68%]

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

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

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

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

389. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 68%]

...aya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void {     console.log("touch a"); } 因为需要将mouseThrough=true才可以,蛋疼的api描叙你能相信是这个熟悉么? “mouseThrough : Boolean = false,指定当mouseEnabled=true时,是否可穿透。默认值为false,如...

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

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

...Ball = 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.stageWidth...

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