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

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

341. laya接入fairyGUI的时候资源加载方式? [ 77%]

...fairyGUI的时候资源加载方式?     Laya.loader.load([{ url: "res/Basics_atlas0.png", type: laya.net.Loader.IMAGE },     { url: "res/Basics.fui", type: laya.net.Loader.BUFFER }, { url: "res/MainMenu_atlas0.png", type: laya.net.Loader.IMAGE },     { url: "res/MainMenu.fui", type: l...

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

342. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 77%]

... Background.js 将我们需要的素材放到项目目录下面bin -> res RunGame.js是我们游戏的入口类  //后面会提到具体的作用 Background,js 是我们的背景类     //=======================  美丽的分割线 ========================   加载图片并且测试图片是...

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

343. 微信小游戏分包实战(ActionScript-小游戏适配文档-微信小游戏) [ 77%]

...age({ name: 'stage1', // name 可以填 name 或者 root success: function(res) { // 分包加载成功后通过 success 回调 }, fail: function(res) { // 分包加载失败通过 fail 回调 } }) ``` 加载成功的同时,wx.loadSubpackage 会返回一个 [LoadSubpackageTask](https://developers....

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

344. Laya同时加载图片和引用图片的资源时会报错 [ 77%]

...           Laya.loader.create([             { url: "res/Sword 10 Blue Gold.lmat", type: Laya.Loader.MATERIAL},             { url: "res/Sword 10 Blue Gold.jpg", type: Laya.Loader.IMAGE}         ]); 附件 : --> Test.zip 2022-01-07 添加评论 ...

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

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

...下图片错乱 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.log(Laya....

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

346. 地形shader示例渲染失败【在线等】 [ 77%]

...从github上下载layaair的源代码, 然后将源代码中的samples/res资源复制到本地项目的bin目录下。 3)将samples中的CameraMoveScript.ts和CustomTerrainMaterial.ts复制到本地项目的src目录下。 4)  将示例中的ts代码复制到LayaAir3D.ts中 最终代码结构...

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

347. 资源加载后的 回调 [ 77%]

... 个回复 Monica - 知识达人 赞同来自: ysshao 你用Laya.loader.getRes()获取下这个资源,如果返回的不是undefined的话你手动调一下loadselectanimation这个函数即可 2017-11-04 1 0 分享 微博 QZONE 微信 ysshao 赞同来自: Laya.loader.getRes(),里面的 参数怎...

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

348. Sprite3D-Sprite3D变换 [ 77%]

...otate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey1 = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); ...

来源: Laya_示例 发布时间: 20251209

349. qq小游戏网络音效无法重复播放(有复现demo) [ 77%]

...GameUiTest.js this.imaAudioLocal.on(Laya.Event.CLICK, this, ()=>{ let resUrl = "res/audio/sound_click.wav"; Laya.SoundManager.playSound(resUrl, 1); });  this.imaAudioNet.on(Laya.Event.CLICK, this, ()=>{ let resUrl = "https://具体地址见工程代码/h5/gun_res/v6/res/audio/hit.wav"; Laya.S...

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

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

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