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

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

211. 在 tiledmap 插入一个精灵在上面 [ 62%]

...  this.init(); } init():void{   Laya.init(800, 700, Laya.WebGL);   Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); }   onLoaded(){   console.info("onLoaded");   this.tiledMap = new Laya.TiledMap();   this.tiledMap.createMap("desert.js...

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

212. Uncaught Error: Laya3D:unknown mesh version [ 62%]

...从对应版本下载的 导出ls文件后,laya里面代码加载 Laya.loader.create("LayaScene_yuanwenj2/Conventional/yuanwenj2.ls", Laya.Handler.create(this, function() {             console.log("sssssssssssss");         })); 或者使用 Laya.Scene3D.load('LayaScene_yuanwenj...

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

213. 如何解析json文件并获取某对象值? [ 62%]

如何解析json文件并获取某对象值? private jsonParse() { Laya.loader.load("res/atlas/resTest0.json", Handler.create(this, this.onLoaded), null, Loader.JSON); } private onLoaded() { var json : JSON = Laya.Loader.getRes("res/atlas/resTest0.json"); var jsTx = JSON.stringify(json); } 已经...

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

214. 粒子加载报错 [ 62%]

...。 新建一个粒子,加载就报错。   playQiPaoParticle() { Laya.loader.load('noLanguage/test.part', Laya.Handler.create(this, this.onAssetsLoaded), null, Laya.Loader.JSON); }  onAssetsLoaded(settings: Laya.ParticleSetting) { let sp = new Laya.Particle2D(settings); // sp.emitter.start(); /...

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

215. worker如何使用 [ 62%]

worker如何使用 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, () => { alert("onLoaded!"); }), null, Laya.Loader.ATLAS, 1, true, null, false...

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

216. 3D资源如何释放 [ 62%]

...放 加载的sprite3D如何正确的释放,有没有统一的方式。 Loader.create方法添加来的贴图资源,怎么释放销毁?       附件 : --> TestLaya.zip 2017-12-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

217. 请问怎么制作一个layabox js版本的加载效果 [ 62%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(["./comp/progress.png", "./comp/progress$bar.png"], Handler.create(this, onLoadComplete)); } console.log(1); Laya.class(Loadings,"Loadings",_super); function onLoadComplete() { progressBar = new ProgressBar("./com...

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

218. [LayaAir3]LayaAir3 预制体销毁时如何回收其依赖的资源 [ 62%]

...销毁时如何回收其依赖的资源   //加载预制体 var win; Laya.loader.load("prefab/loginScene/LoginScene.lh").then(res=>{             win:LoginSceneRT = res.create();             mainRT.SceneLayer.addChild(win); }); //销毁预制提 win.destroy(); //如何回收此预制...

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

219. 使用IDE打包图集工具出来的atlas,调用clearRes无法卸载资源 [ 62%]

...的atlas,调用clearRes无法卸载资源 加载时时这样调用 Laya.loader.load("res/MainBlood.atlas", Laya.Handler.create(this, this.onAtlasLoaded), null, Laya.Loader.ATLAS); 卸载时这样 Laya.loader.clearRes("res/MainBlood.atlas");在Laya.Loader.loadedMap里查找是没有了,但是统...

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

220. 支付宝小游戏 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

...毕,此方法只执行一次 onAwake(): void { //支付宝小游戏 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) La...

来源: Laya3.0_文档 发布时间: 20251010