• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)

431. Texture如何转换成Texture2D有人搞过吗 [ 52%]

...所以加载时要写上类型 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

432. 关于创建Sprite获取大小 [ 52%]

...取鼠标滚轮是放大开始缩小 怎么获取对象的坐标 tree mouseHandler 怎么获取条目 怎样获取浏览器地址传过来的GET参数 Adobe Flash Builder 4.7无法编译Laya2.6.1创建的3D示例项目 问题状态 最新活动: 2018-05-30 23:03 浏览: 1268 关注: 2 人 冰水blue...

来源: Laya_社区 发布时间: 20180530

433. 请问2.0中js怎么加天空盒子或穹顶,官网例子运行报错。 [ 52%]

...) 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

434. Unity插件导出模型 [ 52%]

...下   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

435. SCALE_FIXED_WIDTH适配屏幕的问题 [ 52%]

...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

436. 模仿教程里的打地鼠写的代码,运行报错 [ 52%]

...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

437. IDE发布之后,在res下并没有任何资源,这是什么情况啊? [ 52%]

...。改成 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

438. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 52%]

...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

439. Cannot read property 'load' of null [ 52%]

...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

440. 如何通过代码控制prefab上面的时间轴动画animation? [ 52%]

...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