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

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

31. ani 如何 更改某一帧的 skin ,, [ 88%]

... 更改某一帧的 skin ,, ani 如何 更改某一帧的 skin ,, this.saizi.play(0,false); this.saizi.on(Event.LABEL,this,function(){ this.saizi.skin="game/room_xinxibg.png"; }); 2017-10-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

32. Animator无法监听complete [ 87%]

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

33. socket大型项目回调 [ 87%]

... = console.log; console.warn = console.log; console.error = console.log; } this._message = new Message(); this._package = new Package(); this.socket = null; this.callbacks = {}; this.handlers = {}; // Map from request id to route this.routeMap = {}; this.heartbeatInterval = 0; this.heartbeatTimeout ...

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

34. 关于3D动画的ani监听播放完毕后,播放默认动画不行 [ 87%]

关于3D动画的ani监听播放完毕后,播放默认动画不行 this.mAni.on(Laya.Event.COMPLETE,this,this.aniComplete); this.mAni.play("free") aniComplete(type:number):void {    this.mAni.play("ready"); }   播放完指定动画后,这个回调不执行。   附件 : --> pkwang3D.rar 20...

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

35. laya.d3.webxr.core.WebXRSessionManager_API3.0 [ 86%]

...3/WebXR/core/WebXRSessionManager.ts:55 The current reference space used in this session. Returns any XRReferenceSpace; Defined in laya/d3/WebXR/core/WebXRSessionManager.ts:62 set 参考空间 Parameters newReferenceSpace: any Returns void XRReferenceSpace; sessionMode get sessionMode(): any Defined ...

来源: Laya3.0_api 发布时间: 20231115

36. 和原生Dom交互 · LayaAir3.4 · 引擎文档 · LAYABOX [ 86%]

...代码如下: var div:any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url:string = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite()...

来源: Laya3.0_文档 发布时间: 20251010

37. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 86%]

...class A {  protected _id:number = 1;    public get id():number { return this._id }  public set id(value:number){     this._id = vaule;  } } class B extends A {   public set id(value:number){     this._id = value + 1;   } } class C extends A {  public get id():number { return this._id } ...

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

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

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

39. 1.7的接口消失 [ 86%]

1.7的接口消失 // ZmyTestManager.Ani.on(Laya.Event.COMPLETE, this, this.OnCurrentAnimationCompleted);//循环动画完成播放单次循环 // ZmyTestManager.Ani.on(Laya.Event.STOPPED, this, this.OnCurrentAnimationStopped);//非循环动画停止播放 这个接口在2.0后就没有了 文档...

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

40. Laya.Animator没有动画播放完事件 [ 85%]

...件 官方文档错误,我就不发demo了如下是官方文档里的代码this.ani = role3D.getChildAt(0).getComponentByType(Laya.Animator) as Laya.Animator; //监听默认动画完成后播放站立动画 this.ani.on(Laya.Event.COMPLETE,this,this.onAniComplete);但 Laya.Animator跟本没有继承...

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