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

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

971. 关于SWF的bug [ 67%]

...Animation Bug LayaAir IDE APP构建BUG,不显示版本,在线等,急 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 2.3.0发布微信小游戏,自动缓存:查找不到资源问题的Bug Laya2.0.1动态批处理的bug? 问题状...

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

972. swf预加载问题 [ 67%]

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

973. 小游戏资源50M满了,没法加载新的资源 [ 67%]

...夹里,使用老的版本号,资源是不会刷新的 看起来 Laya.loader.clearRes只是清除内存中的资源,我想请问下,如何删除缓存中老的资源?不然现在我以后的版本都没法更新资源了。我想无论是启用版本管理还是其它,都没法删除己...

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

974. 如何将TTF字体导入到LayaAir编辑器中? [ 66%]

...同来自: 可以使用啊,放到工程/laya/assets目录下,用Laya.loader.Load()加载出来就可以了,IDE里面直接填字体的名称就可以了。 亲测可用 2018-07-02 0 9 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添...

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

975. 启用版本管理后,加载的资源很奇怪的在正确的路径后面又加了一次路径 [ 66%]

...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

976. 在 tiledmap 插入一个精灵在上面 [ 66%]

...  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

977. 模仿教程里的打地鼠写的代码,运行报错 [ 66%]

...; //设置背景颜色 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

978. laya发布vivo小游戏失败 [ 66%]

...创建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

979. 问一下这个问题要怎么改啊? [ 66%]

... 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

980. scaleMode设为full时怎么pc浏览器跟平板上效果不一样? [ 66%]

....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