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

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

1051. 微信小游戏中不能加载proto文件 [ 48%]

... (function () { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; console.log("!____________________________________")  var ProtoBuf = Browser.window.protobuf;  // Laya.init(550, 400);  ProtoBuf.load("res/protobuf/Login.proto", onAssetsLoaded);  function onAssetsL...

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

1052. 提示资源重复加载 [ 48%]

...); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded));   } private onLoaded():void{   Laya.Animation.createFrames([swimpoorpath01,swimpoorpath02],"swimpoolani"); Laya.stage.addChild(this.swimpoolani); this.swimpoolani.play(0,true,"swimpoolan...

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

1053. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 48%]

...t(); } private function init():void { Laya.loader.load("../res/zy/zy.json",Handler.create(this,onLoadedSource),null,Loader.ATLAS); } private function onLoadedSource():void { roleAni = new Animation(); playActions(); }   2、你打包图集的时候,.json文件的prefix键是没有值的,这个...

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

1054. laya2.7.3 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 48%]

...ibs-end------- 完整重现代码如下: Laya3D.init(720, 1280, null, Laya.Handler.create(null, () => { Config3D.useCannonPhysics = true; Laya.stage.scaleMode = "fixedwidth"; Laya.stage.screenMode = "none"; Laya.stage.alignV = "top"; Laya.stage.alignH = "left";  let scene = Laya.stage.addChild(n...

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

1055. tween complete 报错 以及如何判断对象正在缓动中 [ 47%]

...把 Laya.Tween.to(letterText, { y : 300 }, 1000, Laya.Ease.bounceIn, Laya.Handler.create(this,this.changeColor,[letterText]), i * 100); 2017-11-22 0 0 分享 微博 QZONE 微信 liner1457387450 赞同来自: 恩恩,你写的这句是基本的用法,我想用tween API里complete()立即完成...

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

1056. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 47%]

...,会报错。 laya 引擎是2.5的      Laya.loader.load(cg_url,Laya.Handler.create(this,()=>{             let tur:Laya.Texture = Laya.loader.getRes(cg_url);             if(tur)img_cg.graphics.drawImage(tur)         }),null,Laya.Loader.IMAGE);    这段...

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

1057. 3d粒子只要勾了looping,每次播放完开始下一次循环的时候都会闪烁一下 [ 47%]

...e3D.load("res/LayaScene_gamescene/Conventional/chest01.lh", Laya.Handler.create(this, function(sp:Laya.Sprite3D):void { console.log("111111111111111111111") var target: Laya.Sprite3D = scene3d.addChild(sp) as Laya.Sprite3D; camera.convertScreenCoordToOrthographicCoord(pos, transl...

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

1058. Laya.SoundManager.playSound()问题,任务不是当前标签停止播放,当任务回到当前标签页,不能恢复播放 [ 47%]

...dChannel: Laya.SoundChannel = Laya.SoundManager.playSound(url, loops, Laya.Handler.create(this, () => { resolve(soundChannel); }), soundClass, startTime); }); } 我使用Promise封装了一下音效播放,正常使用await播放没啥的问题,可以做同步异步转换,出问题是的使...

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

1059. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 47%]

...256*256大小的地图块 this.isShow = true; Laya.loader.load(name,Laya.Handler.create(this,this.drawImg)); }  drawImg():void { var texture:Laya.Texture = Laya.loader.getRes(this.name); this.texture = texture; }  clearImage(): void{ if (this.name != "") { this.isShow = false; Laya.Loader.clearTex...

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

1060. ipad 声音管理无法暂停继续播放,只能从头开始,pc端正常,代码如下 [ 47%]

...      this.soundMan = Laya.SoundManager.playMusic(this.leadSoundUrl, 1, Handler.create(this, this.soundEndFun1));             this._btnTimeOutPlay.visible = true;             this._btnPlaySound.visible = false;             this.playBoo = false;             return;      ...

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