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

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

31. Sprite-切换纹理 [ 90%]

...tage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.flag = true; Laya.loader.load([monkey1Str, monkey2Str], Laya.Handler.create(this, this.onAssetsLoaded)); } onAssetsLoaded() { monkey1Res = Laya.loader.getRes(monkey1Str), monkey2Res = Laya.loader.getRes(monkey2Str); this.ape = new Laya.Sprite(...

来源: Laya2.0_示例 发布时间: 20260929

32. 分享个资源加载的方法,类似白鹭的加载方式 [ 90%]

...ing = "onLoadedResJson"; // 资源配置文件加载出错 public static ONLOADERRORRESJSON: string = "onLoadError"; // 资源组加载完成 public static ONLOADGROUPCOMPLETE: string = "onLoadGroupConplete"; // 资源组加载出错 public static ONLOADGROUPERROR: string = "onLoadGroupError"; priva...

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

33. Laya.loader.load 如何同时加载图片数组以及json图集 [ 90%]

Laya.loader.load 如何同时加载图片数组以及json图集 Laya.loader.load([{url: "res/atlas/images/fesh.json", type: Loader.ATLAS}, {url: "res/atlas/images.json", type: Loader.ATLAS},{url: "res/atlas/common.json", type: Loader.ATLAS}, {url: "res/atlas/template/ButtonTab.json", type: Loader.A...

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

34. 关于loader的问题 [ 90%]

关于loader的问题 不传demo了,直接浏览器控制台输入 Laya.loader.load("aa").then(res=>{console.log("success",res)}).catch(res=>{console.log("fail",res)}) 期望返回失败 实际返回成功 附件 : --> 2023-09-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

35. Sprite-显示图片 [ 90%]

...adImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.po...

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

36. layabox加载fairygui发布的二进制文件报错 [ 90%]

...游戏加载不了,路径没问题,麻烦看下   加载代码 Laya.loader.load([             { url:"res/Bag_atlas0.png", type:Laya.Loader.IMAGE },             { url:"res/Bag_atlas0_1.png", type:Laya.Loader.IMAGE},             { url:"res/Bag.json", type:Laya.Loader.BUFFER}  ...

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

37. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 90%]

...我们可以用加载器预加载。 ​ 2D游戏资源我们是用**Laya.loader.load()**方法预加载,而3D资源必须用Laya.loader.create()这个方法。在加载完成后,我们就可以直接使用**Laya.loader.getRes()**这个方法来获取加载完成的资源。请参考的相关的...

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

38. Mac下LayaAirIDE1.7.20版本声音预加载失败,但windows下同个版本加载正常 [ 89%]

...Arr:Array=[             {url:"res/sound/music_gameplay.mp3", type:Loader.SOUND},             {url:"res/sound/button.mp3", type:Loader.SOUND},             {url:"res/sound/mob_true.mp3", type:Loader.SOUND},             {url:"res/sound/mob_hit.mp3", type:Loader.SOUND...

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

39. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 89%]

...图片加密数据是在图片的前面写入了四个字节的数据 Laya.loader.fetch("resources/res/test.bin","arraybuffer").then((res)=>{ //获得res的ArrayBuffer数据 let arraybuffer: ArrayBuffer = res; //Byte数组接收arraybuffer let byte:Byte = new Byte(arraybuffer); //从第四个字...

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

40. 缓存清除方法clearTextureRes [ 89%]

缓存清除方法clearTextureRes    Loader.clearTextureRes=function(url){             url=URL.formatURL(url);             var arr=laya.net.Loader.getAtlas(url);             var res=arr ? laya.net.Loader.getRes(arr[0]):laya.net.Loader.getRes(url);       ...

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