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

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

31. 在线急等,发现你们这个编译器一个bug,不能实现负负得正,昨天明明解决了,过了一会又不行了,怎么回事 [ 87%]

...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.img1 ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; console.log("33333"); } if (this.ball.x + this.v...

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

32. 物体的x,y输出不一致的问题 [ 87%]

...息不一致: var player :Player = Laya.stage.getChildAt(i) as Player; console.log(player.x); 附:在Player中输出x的信息 一直为0 但是在Monster类中输出Player的x的数据一直是497,0,494,0,491,0,488,0.......这样的 2018-08-28 添加评论 免费帖 --> 分享 微...

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

33. TypeScript Json 数据解析 [ 87%]

...omplete(): void { this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(this.wayPoints.name); //这里会报name 不存在 } 第二种方式 Laya.loader.load("zxc.json", Laya.Handler.create(this,function(){ this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(this.wayP...

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

34. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 87%]

...s.bgimg.mvtoy=movetoy; this.bgimg.speedx=speedx; this.bgimg.speedy=speedy; console.log("funmovebg"+movetox); Laya.timer.frameLoop(speed, this, funbg);     2017-10-25 0 2 分享 微博 QZONE 微信 yinglei999 赞同来自:     var Loader = Laya.Loader;     var loaderHandler = Laya.Handler; ...

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

35. 关于缓动函数from的一些问题记录 [ 87%]

...Handler(this,this.onEaseComplete),1,null,true); function onEaseComplete(){ console.log("ease complete"); Laya.stage.addChild(letterText); } ``` 以上的代码主要存在三个问题: 1. from()中的duration和delay都是以毫秒为单位,所以3,1想表示3秒,1秒需要使用3000,1000作为参...

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

36. [LayaAir3]V3.2 | 调试结果不一致,导致无法判断结果? [ 86%]

...  onStart() {     //@ts-ignore     window.camera = this.camera;     console.log("Game start", this.camera._up);     console.log(       "Game start",       this.camera._up.x,       this.camera._up.y,       this.camera._up.z     );   } } 附件 : --> testProject.zip 2024-10-29 ...

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

37. canvas下drawToCanvas内存泄漏,webgl下不泄漏 [ 86%]

...放?需要用到ResourceManager吗?有没有例子? 如何在chrome console 里模拟canvas点击事件 如何把本地的svg文件读取到内存里,如何画在画布上 清理运行时不必要的内存问题 问题状态 最新活动: 2017-11-13 10:58 浏览: 783 关注: 2 人

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

38. Skeleton骨骼动画内存泄漏 [ 86%]

...enceCount); if (this.bitmap.referenceCount===0){ this.bitmap.destroy(); // console.log("texture2d destory"); } this.bitmap=null; } if (this.url && this===Laya.loader.getRes(this.url)) Laya.loader.clearRes(this.url); } }增加的代码是 if (this.bitmap.referenceCount===0){ this.bitmap.dest...

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

39. 克隆销毁后存在内存泄漏 ? [ 86%]

...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 请教下微信小游戏的内存和数据缓存? 创建动效模板 可能存在bug [Laya2.0 3D] 2.0正式版上存在某些骨骼动画无法播放,U3D...

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

40. 分享 修复webaudiosound 循环播放的声音 俩个失声问题 [ 86%]

..._proto.play = function () { // if (this.url.indexOf("music.d") != -1) { // console.log("play", this.url) // console.trace("play", this.url) // } Laya.SoundManager.addChannel(this); this.isStopped = false; this._clearBufferSource(); if (!this.audioBuffer) { // console.log("audioBuffer is null",this.u...

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