大约有 1,584 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)
Laya_社区(1113) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(50) Laya3.0_api(11) Laya2.0_api(2)
...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
... Background.js 将我们需要的素材放到项目目录下面bin -> res RunGame.js是我们游戏的入口类 //后面会提到具体的作用 Background,js 是我们的背景类 //======================= 美丽的分割线 ======================== 加载图片并且测试图片是...
来源: Laya_社区 发布时间: 20160722
...age({ name: 'stage1', // name 可以填 name 或者 root success: function(res) { // 分包加载成功后通过 success 回调 }, fail: function(res) { // 分包加载失败通过 fail 回调 } }) ``` 加载成功的同时,wx.loadSubpackage 会返回一个 [LoadSubpackageTask](https://developers....
来源: Laya2.0_文档 发布时间: 20210715
... 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
...下图片错乱 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
...从github上下载layaair的源代码, 然后将源代码中的samples/res资源复制到本地项目的bin目录下。 3)将samples中的CameraMoveScript.ts和CustomTerrainMaterial.ts复制到本地项目的src目录下。 4) 将示例中的ts代码复制到LayaAir3D.ts中 最终代码结构...
来源: Laya_社区 发布时间: 20180403
... 个回复 Monica - 知识达人 赞同来自: ysshao 你用Laya.loader.getRes()获取下这个资源,如果返回的不是undefined的话你手动调一下loadselectanimation这个函数即可 2017-11-04 1 0 分享 微博 QZONE 微信 ysshao 赞同来自: Laya.loader.getRes(),里面的 参数怎...
来源: Laya_社区 发布时间: 20171103
...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
...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
...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