大约有 1,138 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0108 秒)
Laya_社区(821) Laya2.0_文档(173) Laya_示例(51) Laya2.0_示例(43) Laya3.0_api(23) Laya3.0_文档(20) Laya2.0_api(4) laya_api(3)
...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
...使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); })); kezhiyu • 2018...
来源: Laya_社区 发布时间: 20180604
...画 Laya.loader.load(["res/fish_1/stand.atlas","res/fish_1/attack.atlas"], Handler.create(this, this.onAnimAtlasLoaded)); } } private function onAnimAtlasLoaded():void { testAnim1 = new Animation(); testAnim1.loadAnimation("res/fish_1/fish_1.ani"); Laya.stage.addChild(testAnim1); testAnim1.play(0,tr...
来源: Laya_社区 发布时间: 20180424
...载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin,Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个Button实例 var btn = new Laya.Button(skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height =...
来源: Laya2.0_文档 发布时间: 20210714
... Laya.Sprite3D.load("res/prefabs/Conventional/SampleScene.lh", Laya.Handler.create(null, function(sp) { var layaMonkey2 = scene.addChild(sp); layaMonkey2.transform.localScale = new Laya.Vector3(4, 4, 4); ...
来源: Laya_社区 发布时间: 20211009
...与图片资源需要提前加载完成 CmShowTool.LoadCharacter(struct, Handler.create(this, this.onLoadCharacter, [struct])); ``` 3. 加载完成回调 ```typescript /** * @param struct 辅助对象, 记录部件与对应资源路径 * @param sprite 返回厘米秀模型根节点 * @param render...
来源: Laya2.0_文档 发布时间: 20210715
...ATLAS}, {url: "res/atlas/xxx3.json", type: Loader.ATLAS}], Handler.create(... 并且在这之前已经加载并设置了版本文件 URL.version=Laya.loader.getRes("resVersion.json"); 我们游戏已经在微信小游戏之外的平台上线了的,以前热更新都没问题...
来源: Laya_社区 发布时间: 20180505
...源成功后,执行onLoaded回调方法 Laya.loader.load(this.skin,Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个Button实例 var btn:Laya.Button = new Laya.Button(this.skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 bt...
来源: Laya2.0_文档 发布时间: 20210714
...x.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); 编译运行上面的代码,然后点击舞台可以看到,二维码已经显示到了舞台上,可以用手机扫下,发现手机已经...
来源: Laya3.0_文档 发布时间: 20251010
...s" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangfu • 2018-03-16 09:55 这个是主的JS. 数据服务器都能正常接收,但是返回...
来源: Laya_社区 发布时间: 20180315