大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)
...所以加载时要写上类型 Laya.loader.load([{url:url,type:"image"}], Handler.create(this,function(){ //接下来 }));5.接下来回调,卸载之前的资源 Laya.loader.clearRes(oldUrl);6.加载Texture2D 这样就原图片地址是个Texture2D,生成的URL地址是个Texture 2019-02-19 0...
来源: Laya_社区 发布时间: 20181221
...取鼠标滚轮是放大开始缩小 怎么获取对象的坐标 tree mouseHandler 怎么获取条目 怎样获取浏览器地址传过来的GET参数 Adobe Flash Builder 4.7无法编译Laya2.6.1创建的3D示例项目 问题状态 最新活动: 2018-05-30 23:03 浏览: 1268 关注: 2 人 冰水blue...
来源: Laya_社区 发布时间: 20180530
...) at Loader.Laya3D._onTextureCubeLtcLoaded (libs/laya.d3.js:14656) at EventHandler.__proto.runWith (libs/laya.core.js:1400) at Loader.__proto.event (libs/laya.core.js:1156) at Loader.__proto.complete (libs/laya.core.js:16348) at Loader.__proto.onLoaded (libs/laya.core.js:16316) at EventHandler.__pro...
来源: Laya_社区 发布时间: 20181203
...下 Laya.Sprite3D.load("res/LayaScene_Model_71008/Model_71008.lh", Laya.Handler.create(null, function(sprite:Laya.Sprite3D):void { scene.addChild(sprite); sprite.transform.localScale = new Laya.Vector3(0.2, 0.2, 0.2); })); 报错信息 Uncaught TypeError: Cannot read property 'transform' of un...
来源: Laya_社区 发布时间: 20200104
...n); Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame)); } private loadGame(): void { var resArray = [ { url: "res/atlas/lobby/create_room.atlas", type: Laya.Loader.ATLAS }, ...
来源: Laya_社区 发布时间: 20181213
...r = "#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里是这样写的 var background = (function (_sup...
来源: Laya_社区 发布时间: 20180129
...。改成 Laya.loader.load("res/atlas/Resources.json",laya.utils.Handler.create(this,this.onReader),null,laya.net.Loader.ATLAS);就好了 Buzhihew • 2017-01-11 15:50 @Monica:.......我.....总之谢谢啊啊啊 Monica • 2017-01-11 15:51 @Buzhihew:不客气(*^__^*) ...... wuquanan • 2...
来源: Laya_社区 发布时间: 20170111
...n); Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame)); } private loadGame(): void { var resArray = [ { url: "res/atlas/lobby/create_room.atlas", type: Laya.Loader.ATLAS }, ...
来源: Laya_社区 发布时间: 20181202
...p/28.jpg", "res/img/map/29.jpg", ]; Laya.loader.load(this.skins,laya.utils.Handler.create(this, this.LoadSuccess,null,false)); } private LoadSuccess() { ViewManager.getInstance().CreateView(contant.loginId,new LoginView()); ViewManager.getInstance().ShowView(contant.loginId); } public SwictMap(index...
来源: Laya_社区 发布时间: 20171124
...n(Laya.Event.COMPLETE, this, this.onPlayComplete); } attack(callback?:Laya.Handler){ this.ani_show.play(); if (callback) // 甚至可以加上回调 this.ani_show.once(Laya.Event.COMPLETE, this, ()=>{ callback.run(); }); } ... // 外部访问 ... let puzzleSoldier = soldier.getComponent(PuzzleSol...
来源: Laya_社区 发布时间: 20190215