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

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

381. 3d导入粒子效果报错 [ 67%]

...ite3D = Laya.Sprite3D.load("res/partical1/sceneFXMaker.lh"); 报错 Error: LoaderManager:unknown file(res/partical1/Assets/IGSoft_Tools/FXMaker/ToolResource/Texture/MapGrid.psd) extension with: psd. at LoaderManager.__proto._create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:13120:1...

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

382. Uncaught Error: Laya3D:unknown mesh version [ 67%]

...从对应版本下载的 导出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

383. hBox使用问题 [ 67%]

hBox使用问题 Laya.loader.load(picAy,Handler.create(this, onAssetLoaded)) private function onAssetLoaded():void { for(var i:int=0;i<picAy.length;i++) { var texture:Texture= Loader.getRes(picAy); var ape:Sprite = new Sprite; //ape.x=i*(stageWidth/4) //Tween.to(ape, { x : i*(stageWidth/4) },150...

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

384. 使用IDE生成图集后,无论使用图集下的某个小图 [ 67%]

...生成图集后,放到img/assets目录下 然后这样使用:   Laya.loader.load([{ url : 'http://localhost:3000/shoot/v2/img/assets/assets.json', type : Loader.ALTAS }], Handler.create(this, function () { var _getRes = Laya.loader.getRes('bg-toolbar.png'); console.log(_getRes); }));然后log...

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

385. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 67%]

...MeshSprite3D(mesh); //方法二:预加载,创建为Sprite3D类型 Laya.loader.create("LayaScene_01/Assets/model/loveScene_jianzhu.lm",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void { //创建预加载的模型网格 var mesh:Laya.Mesh...

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

386. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 67%]

...source:Array = ["res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100))...

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

387. 仅在Android微信小游戏下图片错乱 [ 67%]

...小游戏下图片错乱 static preLoadPublicAssets(){ this.sAssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets inited !!!!") console....

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

388. 音乐音效缓存 [ 67%]

...音效全无 请教下微信小游戏的内存和数据缓存? 请问下loader如何强制加载一个文件,避免浏览器的缓存 Animation 的createFrames 使用已经加载的图集缓存动画失败 求教: soundManager如何停止正在播放的背景音乐 为什么这样没办法移...

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

389. 分享:Dragonbones/Spine的换肤操作 [ 67%]

...xture 准备好的图片head3.png 放置资源目录下 获取texture Laya.loader.load('head3.png',Handler.create(this,onTextureLoaded)); } private var texture:Texture; private function onTextureLoaded():void { texture=Loader.getRes('head3.png'); }整体代码如下package { import laya.ani.bone.Ske...

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

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

如何解析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