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

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

231. 播放swf动画的时候,有的时候会崩溃在这里, Cannot read property 'dir' of undefined [ 67%]

...有的时候会崩溃在这里, Cannot read property 'dir' of undefined this.basePath=this._atlasPath?Loader.getAtlas(this._atlasPath).dir:this._url.split(".swf")[0]+"/image/"; 2018-04-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

232. 动画混合问题,Avatar动画混合报错. [ 66%]

....Sprite3D = null;  public animator:Laya.Animator = null;  public Init(){ this.sprite = this.owner as Laya.Sprite3D; this.animator = this.sprite.getComponent(Laya.Animator) as Laya.Animator; console.log("11"); }  public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya...

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

233. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 66%]

...后删除对方。 PlayerMove.prototype.onTriggerStay = function (other) { this.tsizex = this.box._components[0]._transformOrientedBoundBox.extents.x; this.tsizez = this.box._components[0]._transformOrientedBoundBox.extents.z; this.osizex = other._transformOrientedBoundBox.extents.x; this.osizez = o...

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

234. unity3d导出人物,不能播放动画 [ 66%]

...能播放动画,使用新版动画系统。 //获取角色动画组件 this.roleAni = this.roleModel.getComponentByType(Laya.Animator); 1、unity中Legacy类型 roleAni输出为NULL 2、unity中Generic类型 roleAni输出不为NULL,this.roleAni.play("Walk");但是不能播放 附件 : --> 2018-0...

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

235. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 66%]

... let mesh = Sprite3D.load('resources/shuipao.lh');             this.addChild(mesh);             mesh.on(Event.HIERARCHY_LOADED, this, this.OnHierarchyLoaded);                          let ani_names = this.ani_names;             let anies = this....

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

236. js飞机大战报错 请大神看看 [ 66%]

...ll.js文件 里面的组件名正确  layaUI.max.all.js:          this.pauseBtn=null;          this.hpLabel=null;          this.levelLabel=null;          this.scoreLabel=null;          this.infoLabel=null; GameInfo.js: var GameInfo = (function (_super) {   ...

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

237. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 66%]

...OWALL; Laya.stage.bgColor = "#232628"; //预加载资源 Laya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin], Laya.Handler.create(this, this.onSkinLoaded)); } private onSkinLoaded(): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createController(); } pri...

来源: Laya2.0_文档 发布时间: 20210714

238. 如何通过名字 或 索引播放 spine 动画 [ 66%]

...d("spine/feiyangyang_2.sk"); // skeleton.play(0,true);//播放不了别的 this.owner.addChild(skeleton); skeleton.pos(500,500);   哪里写的有问题 大佬看看 2019-06-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

239. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 66%]

...每次获取组件带来不必要的性能开销 thi   s._loveControl = this.getComponent(LoveControl);  //点击提示文字,开始游戏 this.label_start.on(Laya.Event.CLICK, this, this.onTipClick); //this._loveControl.startGame();  //点击重置按钮,重新开始 this.button_reset.on(Lay...

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

240. new Laya.Templet() 时,说这不是一个constructor [ 66%]

....0的“技术文档 → 动画进阶 → 示例代码”是这样写的!this.templet = new Laya.Templet();  2018-12-12 0 1 分享 微博 QZONE 微信 180*****237 赞同来自: 碰到同样问题了,我用的是LayaAir2.0。也是说: TypeError: Laya.Templet is not a constructor   能有详...

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