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

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

1021. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 48%]

...ya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp) { //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试,在单摄像机下时,DrawCall...

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

1022. 微信小游戏中不能加载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

1023. 提示资源重复加载 [ 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

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

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

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

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

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

1027. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 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

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

...,会报错。 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

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

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

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

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

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