大约有 1,280 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0075 秒)
Laya_社区(728) Laya2.0_文档(155) Laya3.0_api(108) Laya2.0_示例(81) Laya_示例(70) Laya2.0_api(58) laya_api(54) Laya3.0_文档(26)
...始时间无效 SoundManager.playMusic("res/music/shanghaitan.mp3", 1, new Handler(this, this.onMusicComplete),20); 播放音乐指定从20s开始,在android机器上运行正常在IOS上运行每次都是从开始播放 附件 : --> testMusic.zip 2019-06-05 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20190605
...缓存资源 通过 lh格式 生成的 Sprite3D, Laya.loader.create(_path, Handler.create(this,OnComplete),null,Sprite3D); 要怎么清理掉他的所有缓存资源? 附件 : --> 2018-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20180517
...loadImage(SKINS.HEXA_GRID_BG, 0, 0, this.hexaSize.w, this.hexaSize.h, Laya.Handler.create(this, function () { index++; if (index >= views.length) { img.mask = imgMask; } })); imgMask.addChild(tmpMask); 附件 : --> 2020-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20200619
...行解压,采用的是以下语句: Laya.loader.load("config.zip", Laya.Handler.create(this, this.configLoaded,["config.zip"]), null, Laya.Loader.BUFFER, 1, true) private configLoaded(url):void { var data:Object = Laya.loader.getRes(url); console.log(data) var e = new Zlib.Inf...
来源: Laya_社区 发布时间: 20171218
... 3 个回复 cuixueying 赞同来自: { Laya.loader.load("ui/image.png", Handler.create(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var texture:Texture=Loader.getRes("ui/image.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture); Laya.stage.addCh...
来源: Laya_社区 发布时间: 20170603
...预加载,创建为Sprite3D类型 Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void{ //实例化加载并创建好的3D对象 var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/room.lh"); this.scene.addCh...
来源: Laya_社区 发布时间: 20170809
...cheFile || isSaveFile) { MiniFileMgr.copyFile(filePath, readyUrl, new Laya.Handler(MiniFileMgr,MiniFileMgr.copyFileCallback,[callBack,data]), encoding, isAutoClear); } else callBack != null && callBack.runWith([0, data]); } else callBack != null && callBack.runWith([0, data]); }, fai...
来源: Laya_社区 发布时间: 20200103
...可以赋值的方法后面增加上".bind(this)",或者回调方法用Handler.create(this,你的回调方法)。两种方法都可以解决你的问题! 2017-02-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 orecle 相关问题 T...
来源: Laya_社区 发布时间: 20170211
..."./LayaScene_111/Conventional/smoke.lh"]; Laya.loader.create(res3D, Laya.Handler.create(this, this.createBuild));这句子去获取资源,然后用 Laya.Loader.getRes("./Prefab/Conventional/NewBuilds.lh");方法去读取相应的文件,可是发现资源加载还是很慢,好久才进入到c...
来源: Laya_社区 发布时间: 20190702
...rite(); Laya.stage.addChild(ape); ape.loadImage(img,360, 300, 60, 60, Laya.Handler.create(this, function(){ ape.on(Laya.Event.CLICK, this, function(){ console.log(111) }) }));使用这段代码加载了一个60x60大小的图片(下图中骑马的那个人物),并...
来源: Laya_社区 发布时间: 20180609