大约有 655 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0058 秒)
...bject' of undefined 请问下加载TFF字体要怎么加载呢? 请问下loader如何强制加载一个文件,避免浏览器的缓存 本地调试加载本地图片都报错 请问一下怎样动态加载prefab 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片...
来源: Laya_社区 发布时间: 20180724
...调。这个是异步获取,如果你要单个获取的话 window.Laya.loader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _th...
来源: Laya_社区 发布时间: 20180530
...main.ts: if(Laya.Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); }));子域main.ts: import GameC...
来源: Laya_社区 发布时间: 20200314
...么加载进度回调只调用了一次。下面有代码,求解答 Laya.loader.load( // 资源 [{url:'res/atlas/comp.json',type:Laya.Loader.ATLAS}].concat(loadArr), // 加载完成回调 Laya.Handler.create(null,function(){ var logintest = new loginTestView().ini...
来源: Laya_社区 发布时间: 20170331
Laya.loader.create 进度回调函数执行两次!!! Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); } 输出...
来源: Laya_社区 发布时间: 20180620
...行报错: TypeError: Cannot read property 'load' of null 为何使用Laya.loader.load都会报错 附件 : --> fishHunter.zip 2019-05-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 引...
来源: Laya_社区 发布时间: 20190521
...放资源**/ private function assetsDispose(assetsUrl:String):void { Laya.loader.clearRes(assetsUrl); //加载盘释放的资源配置表 Laya.loader.load([{url:assetsUrl,type:Loader.JSON}], Handler.create(this,onAssetsOK,[assetsUrl])); } /**加载资源释放表完成后**/ private function onAsset...
来源: Laya_社区 发布时间: 20170904
...("res/room.lh"); //方法二:预加载,创建为Sprite3D类型 Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void{ //实例化加载并创建好的3D对象 var sprite3D:Laya.Sprite3D = Laya.loader.getRe...
来源: Laya_社区 发布时间: 20170809
...Animation Bug LayaAir IDE APP构建BUG,不显示版本,在线等,急 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 2.3.0发布微信小游戏,自动缓存:查找不到资源问题的Bug Laya2.0.1动态批处理的bug? 问题状...
来源: Laya_社区 发布时间: 20170522
...资源加载姿势呢?? 目前我的资源加载方式是: Laya.loader.load 这个方法里面加载资源,包括图片、音效等资源。 当我使用Laya.SoundManager.playMusic播放音乐或者playSound时播放音效资源时,我传入的是资源路径,会提示 Resources al...
来源: Laya_社区 发布时间: 20180917