大约有 2,782 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0063 秒)
Laya_社区(2462) Laya2.0_文档(107) Laya3.0_文档(59) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...Animation Bug LayaAir IDE APP构建BUG,不显示版本,在线等,急 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 2.3.0发布微信小游戏,自动缓存:查找不到资源问题的Bug Laya2.0.1动态批处理的bug? 问题状...
来源: Laya_社区 发布时间: 20170522
swf预加载问题 loader不能用于swf的预加载,于是用MovieClip的load方式做了个。不知道会不会有问题。package util { import laya.ani.swf.MovieClip; import laya.events.Event; import laya.events.EventDispatcher; import laya.net.Loader; import laya.utils.Handler; public cl...
来源: Laya_社区 发布时间: 20161213
...夹里,使用老的版本号,资源是不会刷新的 看起来 Laya.loader.clearRes只是清除内存中的资源,我想请问下,如何删除缓存中老的资源?不然现在我以后的版本都没法更新资源了。我想无论是启用版本管理还是其它,都没法删除己...
来源: Laya_社区 发布时间: 20180426
...同来自: 可以使用啊,放到工程/laya/assets目录下,用Laya.loader.Load()加载出来就可以了,IDE里面直接填字体的名称就可以了。 亲测可用 2018-07-02 0 9 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添...
来源: Laya_社区 发布时间: 20180702
...tos/login.proto", "protos/gm.proto", "protos/samplegame.proto", ]; Laya.loader.load(this._proto_files,Laya.Handler.create(this,this.OnProtoLoaded),null, Laya.Loader.TEXT); 打包的时候在release/web下面有了protos/loginxxxxxxxx.proto这样的文件 然后运行的时候,报了这样...
来源: Laya_社区 发布时间: 20180319
... 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
...; //设置背景颜色 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
...创建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
... 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
....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