大约有 310 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0047 秒)
Laya_社区(209) Laya3.0_api(22) Laya2.0_文档(22) Laya3.0_文档(20) Laya_示例(16) Laya2.0_示例(15) laya_api(3) Laya2.0_api(3)
...; this.aniFly.visible = false; //销毁 Texture 使用的图片资源 Laya.loader.clearTextureRes(this.PathBg); Laya.loader.clearTextureRes(this.PathFly); this.isDestroyed = true; this.txt.text = "恢复"; } }; return GameMain; }()); new GameMain(); })(leo || (leo = {}));namespace leo { import Sprit...
来源: Laya_示例 发布时间: 20260106
...str = "ui/buildsmall.png"; var box = new Laya.Sprite(); var texture = Laya.loader.getRes(boxstr); box.graphics.drawTexture(texture); var arr = {data: StorageRoom.map_storageData[0][0],tag:0}; box.on(Laya.Event.MOUSE_UP,this,this.onclick,[arr]); var _proto = StorageUILayer.prototype; _proto.onc...
来源: Laya_社区 发布时间: 20171113
loader.create加载.lh文件,如果文件不存在,也不会受到Event.Error事件 如题 2017-07-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 demibug 赞同来自: 按照例子里面: // 侦听加载...
来源: Laya_社区 发布时间: 20170711
有没有Loader预加载 相关的注意事项或者文档 在手机上问题有点多 在电脑上Loader预加载方法都很正常 但是一旦打包成APK安装到手机上 有时会发生异常 Laya.loader.load(skins, Laya.Handler.create(this, fGameLoad), Laya.Handler.create(this, onLoading, ...
来源: Laya_社区 发布时间: 20161228
... stream.close(); 保存为byarr.byte文件后用layaAir加载解析: var loader:Loader = new Loader(); loader.on(Event.COMPLETE, this, loadEnd); loader.load("atlas/byarr.byte",Loader.BUFFER); private function loadEnd(data:*):void { if (data is ArrayBuffer) { var byts:Byte = new Byte(data); byts.po...
来源: Laya_社区 发布时间: 20170308
playSound和playMusic结束时候有异常抛出 1. loader加载了{url:"res/music/Music_start.mp3",type:Laya.Loader.SOUND}资源 2. 加载结束后,调用Laya.SoundManager.playSound("res/music/Music_start.mp3") 3. 声音播放完成后,系统抛出异常__proto._tryClearBuffer=function(sourceN...
来源: Laya_社区 发布时间: 20170105
...r引擎 子容器的事件问题 // 程序入口 Laya.init(800, 800); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); let vhvt: Vi...
来源: Laya_社区 发布时间: 20170822
问一下,使用Laya.loader.clearUnLoaded();以后,再重新开始加载就加载不了了?这个该怎么解决? 2017-12-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: 你是...
来源: Laya_社区 发布时间: 20171215
...,另一台卡住68% 如题,在微信上是ok的,不过在vivo上Laya.loader.create一直没有complete回调,也没有报错,但并不是全部vivo手机都是这样 快应用平台版本号:1060 2020-11-23 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20201123
...aya.utils.Timer; import laya.display.Sprite; import laya.net.Loader; import laya.ui.TextArea; import laya.resource.Texture; import laya.maths.Point; import laya.utils.Tween; import laya.d3.resource.models.PrimitiveMesh; import laya.debug.DebugP...
来源: Laya_社区 发布时间: 20170921