大约有 1,273 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0063 秒)
Laya_社区(723) Laya2.0_文档(155) Laya3.0_api(108) Laya2.0_示例(81) Laya_示例(70) Laya2.0_api(58) laya_api(54) Laya3.0_文档(24)
...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
...es/image/bg.png"], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg.png"),0,0); Laya.stage.addChild(s); } 新建一个工程 這样写打...
来源: Laya_社区 发布时间: 20180808
...ScrollBar 实例。 package { import laya.ui.HScrollBar; import laya.utils.Handler; public class HScrollBar_Example { private var hScrollBar:HScrollBar; public function HScrollBar_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜...
来源: Laya3.0_api 发布时间: 20231115