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

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

461. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 52%]

...init(1024, 768, WebGL); Stat.show(0, 0); Laya.stage.bgColor = "#fff"; Laya.loader.load("assets/images/color1.png", Handler.create(this, __loadImageHandler)); } private function __loadImageHandler():void { _colorSpr = new Sprite(); _colorTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr...

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

462. 微信小游戏中iPhoneX的适配问题 [ 51%]

...uot;../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.a...

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

463. layaAir分包问题 [ 51%]

....moduleCode[moduleName]; var moduleJs:*; if (codeConfig) { moduleJs = Laya.loader.getRes(codeConfig.url); } return moduleJs; } chunjine • 2017-03-17 15:45 @chunjine:不对,并不能断点,只是有异常能进去。 sleepfish • 2017-03-27 09:36 可以断点。。。只要在data后面加上/...

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

464. Skeleton骨骼动画内存泄漏 [ 51%]

...ure2d 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.destroy(); // console.log("texture2d destory"); } 2019-06-13 0 0 分享 微博 QZONE 微信 打...

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

465. 设置滤镜(JavaScript-LayaAir基础篇(JS)-位图) [ 51%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { normalizeApe(); makeRedApe(); grayingApe(); } function normalizeApe() { var originalApe = createApe(); apeTexture = Laya.loader.getRes(ApePath); orig...

来源: Laya2.0_文档 发布时间: 20210714

466. 小游戏对读取json文件有要求吗?为啥说读取json文件错误啊 [ 51%]

...0 0 分享 微博 QZONE 微信 liwenhua 赞同来自: this.linkJson = Laya.loader.getRes('res/json/linkUrl.json');这样读取出来不就是就对象了吗,怎么设置编码格式啊??不会啊!!!我都是这样引用,然后直接this.linkJson.XXX进行读取的,如果数值都都...

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

467. 图片遮罩大小跟设置不一致 [ 51%]

...adImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("https://s2.d2scdn.com/2017/12/ ... ot%3B, Handler.create(this, function() { var t = Laya.loader.getRes("https://s2.d2scdn.com/2017/12/ ... 6quot;); var ape = new Sprite(); ape.scaleX = 0.5 ape.scaleY = 1 ape.grap...

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

468. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 51%]

...;          this.scene.addChild(this.camera);         Laya.loader.create("res/scene_Effect/Conventional/Effect_zhujue_attack.lh", Laya.Handler.create(this, () => {              let item = Laya.loader.getRes("res/scene_Effect/Conventional/Effect_zhujue_attack.lh...

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

469. 如何用 FlashBuilder 或 LayaIDE 进行单步调试? [ 51%]

...用代码调用按钮的点击事件(如as3的dispatchEvent)? Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? 问题状态 最新活动: 2017-08-08 23:11 浏览: 4395 关注: 3 人 cuixueying • 2017-04-26 20:01 flash builder是as3的调试环境,不是h5的,我们只...

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

470. 3D粒子特效第一次卡顿最终解决方案 [ 50%]

...loadEffectComplete():void{         var effect:Laya.Sprite3D = Laya.loader.getRes("res/effect/2/Conventional/bullet.lh");         this.compileShader(effect);         //===========放心使用吧=================         var myeffect:Laya.Sprite3D = effect.clone();   ...

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