大约有 2,668 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0095 秒)
Laya_社区(2346) Laya2.0_文档(106) Laya3.0_文档(62) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
... this.init(); } init():void{ Laya.init(800, 700, Laya.WebGL); Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } onLoaded(){ console.info("onLoaded"); this.tiledMap = new Laya.TiledMap(); this.tiledMap.createMap("desert.js...
来源: Laya_社区 发布时间: 20171125
...都是在xcode和手机上测试的 泄漏重现: 1.多次点击创建(Loader.load / new MyView()) 2.点击移除(myView.destroy()) 3.点击清理(Loader.clearRes(xxx,true),强制清理,不管引用计数) 重复几次,内存一直上升(使用android studio查看内存,期间多次...
来源: Laya_社区 发布时间: 20180408
...; //设置背景颜色 Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这...
来源: Laya_社区 发布时间: 20180129
...接 提交 1 个回复 Monica - 知识达人 赞同来自: 建议你输出Loader.loadedMap看下已经加载的资源列表中是否有你预加载的这个资源! 2017-10-20 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 lvfy 相关...
来源: Laya_社区 发布时间: 20171020
... addPic(str:String, x:int, y:int) { picUrl = str; picX = x; picY = y; Laya.loader.load(picUrl, Handler.create(this, showBgImg)); } private function showBgImg():void { pic = new Image(); pic.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } } Main.as packa...
来源: Laya_社区 发布时间: 20170522
...同来自: 可以使用啊,放到工程/laya/assets目录下,用Laya.loader.Load()加载出来就可以了,IDE里面直接填字体的名称就可以了。 亲测可用 2018-07-02 0 9 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添...
来源: Laya_社区 发布时间: 20180702
...创建vivo快游戏项目 index.js:829 data stderr: internal/modules/cjs/loader.js:968 throw err; ^ Error: Cannot find module 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vivo-minigame\cli\bin\mg' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15) at Function.Mo...
来源: Laya_社区 发布时间: 20200817
....alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load("assets/bg.jpg", Handler.create(this, loadCompleteHandler)); } private function loadCompleteHandler():void { var bg:Image = new Image("assets/bg.jpg"); Laya.stage.addChild(bg); }这张图在三星平板上可以...
来源: Laya_社区 发布时间: 20171124
...a.stage.on(Laya.Event.CLICK, this, () => { Laya.loader.load("HallAni/star.part", Laya.Handler.create(this, (settings) => { let Particle2D = Laya.Particle2D; // 创建 Particle2D 实例 ...
来源: Laya_社区 发布时间: 20190808
...式 分享:LayaAir下如何获取图集下的小图资源? 请问Laya.loader.load资源缓存在哪里?能不能把这个缓存目录里的资源加入NativeFile白名单? 微信小游戏加载资源出错,提示:未加载到该图片资源,请检查安装包或网络 MiniAdpter.autoCa...
来源: Laya_社区 发布时间: 20170524