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

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

171. load 跨域请求 [ 83%]

load 跨域请求 Laya.loader.load(resUrl+'bin/res/atlas/dice.json', Laya.Handler .create(this, this.init), null, Laya.Loader.ATLAS); 这个json提示跨域了,怎么解决好 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

172. 用ide打包后的图片,Texture显示不出来? [ 83%]

...显示出来,Texture报错、、、说找不到图片   代码 : Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){     var aa = new Sprite();     Laya.stage.addChild(aa);     var texture = new Laya.Texture();     texture.loa...

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

173. MovieClip 报错 7 [ 83%]

...,临时你也可以通过修改代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find")...

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

174. 动画-图集动画 [ 83%]

...aya.Animation; var Stage = Laya.Stage; var Rectangle = Laya.Rectangle; var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var AniConfPath = "../../res/fighter/fighter.json"; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Brows...

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

175. 预加载图集文集在小游戏端导致内存过高 [ 83%]

...y: Array<any> = [ { url: hyip+"res/atlas/comp/01_shouye.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/02_zhujiemian.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/30_loading.json", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded1...

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

176. clearUnLoaded的bug LayaAirIDE1.7.9 [ 83%]

... arr = [res.popup.atlas("loadingUI"), res.download.bg("bg5")]     Laya.loader.load(arr, Laya.Handler.create(this, onComplete))     Laya.loader.clearUnLoaded()     Laya.loader.load(arr, Laya.Handler.create(this, onComplete)) }  function onComplete(){     trace("complete") } Resources...

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

177. 预加载mp3文件 [ 83%]

...内容相关的链接 提交 2 个回复 qian 赞同来自: sevennqi Laya.loader.load([{url:"xxx.mp3",type:Loader.SOUND}],Handler.create(this,onComped)) 2018-01-18 1 1 分享 微博 QZONE 微信 sevennqi 赞同来自: 可以和图片, push到同一个var res:Array = []里么?   Laya.loader.load...

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

178. Resources already exist,is repeated loading 加载特效报重复加载 [ 83%]

...PCFType = 3;      //  批量预加载资源         // Laya.loader.create([         //  "res/threeDimen/staticModel/grid/plane.lh",         //  "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",         // //   "res/threeDimen/particle/RadiusMode.lh",  ...

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

179. 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function [ 83%]

... 柠檬_酸 赞同来自: 今天也遇到了哈,new Texture就行,Laya.loader.load试了还是 不行 var Texture1= new Laya.Texture(); Texture1.load("res/1.png",Laya.Handler.create(this,function(){     this.sprite.graphics.drawTexture(Texture1,0,0,50,50,null,1,"#FFFFF"); })); 2021-09-17 ...

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

180. Laya.Loader.getRes请教 [ 83%]

UI相关问题 Laya.Loader.getRes请教 Laya.loader.load("res/atlas/games/game_13/image.atlas", Handler.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但...

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