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

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

131. 性能测试-骨骼 [ 89%]

...function() { var Skeleton = Laya.Skeleton; var Templet = Laya.Templet; var Event = Laya.Event; var GlowFilter = Laya.GlowFilter; var Loader = Laya.Loader; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var mArmature; ...

来源: Laya_示例 发布时间: 20241002

132. socket与node服务端连不上?按照官方案例 [ 89%]

...接 this.socket.connectByUrl("ws://45.78.**.**:3000"); this.socket.on(Laya.Event.OPEN, this, openHandler); this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); this.socket.on(Laya.Event.CLOSE, this, closeHandler); this.socket.on(Laya.Event.ERROR, this, errorHandler); function openHandler(event)...

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

133. 子容器的事件问题 [ 89%]

...wTest(); //testUI.addChildAt(vhvt, 0); testUI.addChild(vhvt); vhvt.on(laya.events.Event.CLICK, this, (event: Laya.Event) => { console.log("为什么这里不进来"); }); } /**  * ViewHeadViewTest  */ class ViewHeadViewTest extends Laya.Sprite {     constructor() {         super();     ...

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

134. CameraMoveScript.as在哪儿下载群里的有错 [ 89%]

..._initialize(owner:Sprite3D):void { super._initialize(owner); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); Laya.stage.on(Event.MOUSE_OUT, this, mouseOut); var camera:BaseCamera = owner.scene.currentCamera; 没有了 -- currentCamera 2017-02-18 添加...

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

135. Cannot read property 'offCanplay' of null [ 89%]

...地方,用到,在laya.wxmini.js onCanPlay() { this.loaded = true; this.event(Laya.Event.COMPLETE); this._sound.offCanplay(null); } 估计是因为网络比较满的情况,在文件下载完毕之后,sound对象已经被销毁了,所以自己加了一个判断。 onCanPlay() { this.loaded = t...

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

136. 鼠标事件out ,move 发生再up事件之后 [ 89%]

...件out ,move 发生再up事件之后 一个页面,绑定事件  initEvent() {         this.bubbleView.on(Laya.Event.MOUSE_MOVE, thisthis.mouseMoveCallback);         this.bubbleView.on(Laya.Event.MOUSE_UP, thisthis.mouseUpCallback);         this.bubbleView.on(Lay...

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

137. Native1.0.1 无法连接wss [ 89%]

...a.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.ERROR, this, this.onConnectFail); this.socket.on(Laya.Event.MESSAGE, this, this.onReceive); this.so...

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

138. 动画-新版骨骼动画 [ 89%]

...("../../res/threeDimen/skinModel/Zombie/new/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { //获取Animator动画组件 zombieAnimator = zombie.getChildAt(0).getComponentByType(Laya.Animator); loadUI(); }); function loadUI() { var clipName = ["walk","attack","left_fall","...

来源: Laya_示例 发布时间: 20241002

139. Sprite-屏幕截图 [ 89%]

...ar btn = new Laya.Button(skin,name); Laya.stage.addChild(btn); btn.on(Laya.Event.CLICK,this,cb); btn.size(147,55); btn.name = name; btn.right = 10; btn.top = index * (btn.height + 10); return btn; } onLoaded(){ for (let index = 0; index = ["res/button.png", "res/button.png", "res/button.png"]; priva...

来源: Laya2.0_示例 发布时间: 20241002

140. dialog的popup方法不会关闭其他弹窗 [ 88%]

...alDialog: NormalDialog; constructor() { super();  this.btn_signin.on(Laya.Event.CLICK, null, () => { this.showDialog("登录成功") }); this.btn_register.on(Laya.Event.CLICK, null, () => { this.showDialog("注册功能暂未开放") });  }  showDialog(context: string) { // if (this.normalD...

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