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

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

901. 微信小游戏设置网络动态加载无法显示 [ 53%]

...game/bgGame.png", type:Laya.Loader.IMAGE });  Laya.loader.load(asset,Laya.Handler.create(this,loadingCallback),null);  用Chrome调试可以显示,用Layaair调试报 [warn]Retry to load: res/atlas/bubbles.atlas [warn]Retry to load: res/atlas/game.atlas [warn]Retry to load: game/bgGame.png在微...

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

902. [0]laya-zip让你的游戏加载速度提升350%!! [ 53%]

...: "xx.zip", type:"ZIP",constructParams:["xx/xxx1.lh","xx/xxx2.lh"]}], Laya.Handler.create(this, () => { let player1 = Laya.loader.getRes("xx/xxx1.lh").clone(); let player2 = Laya.loader.getRes("xx/xxx2.lh").clone(); })); [/size][/code]高级 为了根据具体项目来定制压缩包的颗粒度...

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

903. 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 [ 53%]

...}, {url:"bg/hallrom.json", type:Loader.JSON}, ]; Laya.loader.load(altsArr, Handler.create(this, onComplete));   function onComplete():void{      trace("加载完成"); } 2018-05-18 1 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 楼上的回答是正确的,关于重复过滤引擎是...

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

904. 被遮罩的显示对象的子显示对象再添加遮罩,则子显示对象显示不正确 [ 53%]

....img.mask = imgMask; Laya.Tween.to(this.img, {x:100}, 10000).update = Laya.Handler.create(this, this.updateMsk, null, false); } private updateMsk():void { this.img.mask.graphics.clear(true); this.img.mask.graphics.drawRect(100 - this.img.x, 0, this.img.width, 300, "#ffffff"); } 附件 : --> LayaTest...

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

905. 加载sk文件时,报Uncaught getUint16 error - Out of bounds [ 53%]

...ader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init));

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

906. vivo小游戏 LayaIDE2.2.0使用fairygui报错 [ 53%]

...,     { url: "res/Basics.json", type: Laya.Loader.BUFFER }     ], 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); ...

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

907. playSound和playMusic结束时候有异常抛出 [ 53%]

...der.load("res/music/Music_start.mp3",                      Laya.Handler.create(this, this.onLoadFinished));     }     onLoadFinished()     {         Laya.SoundManager.playMusic("res/music/Music_start.mp3", 1);     } } new GameMain();   ----------------------------------------...

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

908. Laya.load在OPPO小游戏端无法加载带有不安全字符的图片网址 [ 53%]

...rl = "https://lupic.cdn.bcebos.com/2 ... 3B%3B Laya.loader.load(_url, Laya.Handler.create(this, res => { let a = new Laya.Image(_url); Laya.stage.addChild(a); })) 以下是安卓层面输出日志:09-22 11:08:10.811 27895-28111/? D/jswrapper: JS: [WARN]: [warn]Retry to load: https://lupic.cdn.b...

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

909. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” [ 53%]

... onFire() { if (this.isFire) { Laya.Mesh.load("fly2/fly3-bullet.lm", Laya.Handler.create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.addComponent(Laya.PhysicsCollider); var bulletShape = new Laya...

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

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

...ader.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");             let tarItem = Laya.Sprite3D.instantiate(item);...

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