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

大约有 483 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0042 秒)

41. 场景或者View中加入编辑好的2d粒子,加载场景或者view播放的时候会报错误 [ 81%]

...现在粒子系统的customRender方法调用的时候里面有句var sv=(this._particleTemplate).sv;,而此时this._particleTemplate是空的,我断点发现是Particles系统里面的setParticleSetting这个方法根本没有执行,也就是说如果把粒子放到场景或者ui的json文件...

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

42. 3D模型旋转定位问题 [ 80%]

....loader.create("model/build/warehouse1/warehouse1.lh", Laya.Handler.create(this, onComplete)); function onComplete() { //仓库原型 warehouse1 = Laya.Sprite3D.load("model/build/warehouse1/warehouse1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 90, 0), false, fa...

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

43. 加载配置json文件不成功!json文件放在bin目录下的 [ 80%]

...artoon.atlas","res/atlas/miner.atlas","gameConf.json"],Laya.Handler.create(this,onloaded),null,null); 2018-07-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 陈帅 赞同来自: 文件目录如下 2018-07-23 0 ...

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

44. 如何在3d场景中添加文字 [ 80%]

...rGameScene:Laya.Camera; private _outPos:Laya.Vector3 = new Laya.Vector3(); this.txtName = new Laya.Text(); this.txtName.color = "#FFFFFF"; this.txtName.text = this.playerName; this.txtName.fontSize = 18; this.txtName.font = "Arial"; this.txtName.bold = true; this.txtName.align = "left"; Laya.stage.a...

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

45. Native1.0.1 无法连接wss [ 80%]

...aitve无法连接wss 示例代码如下: const url = "wss://xxx.com:8888"; this.socket = new Laya.Socket(); this.socket.endian = Laya.Byte.BIG_ENDIAN; this.socket.on(Laya.Event.OPEN, this, this.onConnectSuccess); this.socket.on(Laya.Event.CLOSE, this, this.onDisonnect); this.socket.on(Laya.Event.ERR...

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

46. Animator无法监听complete [ 80%]

Animator无法监听complete 首先,我新增了多个clip到Animator: this.ani = this.actor.getComponentByType(Laya.Animator) as Laya.Animator; this.ani.addClip(clipSuccess, this.ANIM_SUCCESS_IDLE_NICK,0,34); this.ani.addClip(clipFailed, this.ANIM_FAILED_IDLE_NICK,0,34); this.ani.addClip(clipCardI...

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

47. 无法清除指定定时器 [ 80%]

无法清除指定定时器 发起一个定时器: Laya.timer.loop(1000,this,this.fan); 当执行 Laya.timer.clear(this,this.fan);时, 控制台还是在执行 fan 函数里的代码 2018-05-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

48. 动画无法添加到舞台问题 [ 80%]

...ero_fly1.png", "fj/hero_fly2.png"], "hero_fly");//创建飞机飞行缓存 this.LeadBody = new Laya.Animation(); this.LeadBody.play("hero_fly");//播放动画 this.bound = this.LeadBody.getBounds(); this.LeadBody.pos(-this.bound.width/2,-this.bound.height/2);//设置动画位置 Laya.stage.addChild(...

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

49. TieldMap is not counstructer [ 79%]

...is not counstructer 代码如下: //创建TiledMap实例         this._tMap = new TiledMap();         //创建Rectangle实例,视口区域         var viewRect:Laya.Rectangle = new Laya.Rectangle();         console.log(this._tMap);         //创建T...

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

50. 关于.sk文件加载问题 [ 79%]

...载问题 请问如何知道 下面全部被加载完成????    this.sk_51.loadAni("bis_51.sk");         this.sk_71.loadAni("bis_71.sk");         this.sk_81.loadAni("bis_81.sk");         this.sk_82.loadAni("bis_82.sk");         this.sk_83.loadAni("bis_83.sk"); 2017-09-12 ...

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