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

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

341. websocket连接, ws 时没问题,改成 wss 没反应 [ 84%]

...ectByUrl("wss://192.168.1.250:5000/websocket/");     this.socket.on(Laya.Event.OPEN, this, this.openHandler);     this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler);     this.socket.on(Laya.Event.CLOSE, this, this.closeHandler);     this.socket.on(Laya.Event.ERROR, this, this.erro...

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

342. spine动画放大后,遮罩显示不正常 [ 84%]

...      const         Templet = Laya.Templet,         Event = Laya.Event;         let mFactory = new Templet();         mFactory.on(Event.COMPLETE, this, this.parseComplete,[parent,mFactory]);         mFactory.on(Event.ERROR, this, this.onError);     ...

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

343. layaair js 怎么监听手按住屏幕和松开屏幕事件 [ 84%]

...请: 与内容相关的链接 提交 1 个回复 非文 赞同来自: laya.events.Event.MOUSE_DOWN 和 laya.events.Event.MOUSE_UP 2016-11-10 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jy02250344 相关问题 【屏幕适配】在Lay...

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

344. panel问题 [ 84%]

...,仔细研究了源码,发现问题出在事件派发上 截图来自EventDispatcher 如图所示,当派发mouseup事件时,当前的type为mouseup,由于scrollBar移除了mouseUp事件,所以此时的this._events[type]是undefined,而源码中又去取undefined的run属性,肯定会报...

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

345. laya.d3.component.physics.Collider [ 84%]

...ll Classes | Index | Frames No Frames ColliderProperties | Methods | Events Packagelaya.d3.component.physicsClasspublic class ColliderInheritanceCollider Component3D EventDispatcher ObjectSubclasses BoxCollider, MeshCollider, SphereCollider Collider 类用于创建碰撞器的父类,抽象...

来源: laya_api 发布时间: 20170929

346. 图片像素精准点击问题! [ 84%]

...过检测像素点颜色值来判断点击区域,这里不能用 on(Laya.Event.CLICK,只能通过 on(Laya.Event.MOUSE_DOWN 来检测。   下面是我的代码处理: class demo { private down:Laya.Image; constructor() { // 鼠标事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseD...

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

347. websocket无法连接 [ 84%]

...Url("ws://"+host+":"+port+"/hoopster"); //建立连接 this.socket.on(Laya.Event.OPEN, this, onOpen); this.socket.on(Laya.Event.MESSAGE, this, onReceive); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler);   以上代码,host传...

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

348. 为什么给Sprite容器添加点击事件没反应 [ 84%]

... 提交 2 个回复 honeyzzzz 赞同来自: cuixueying 、Y_Yao 改为Laya.Event试试?昨天我也遇到了。。。 2017-04-21 2 1 分享 微博 QZONE 微信 ippon 赞同来自: 把事件名称写完整可能比较安全,比如Laya.Event.Click 2019-02-21 0 0 分享 微博 QZONE 微信 为什...

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

349. laya.resource.VideoTexture_API3.0 [ 84%]

...tSource _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once videoPause videoPlay destroyUnusedResources Constructors constructor new VideoTexture(): VideoTexture Overrides BaseTexture.constructor Defin...

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

350. 发布微信后无法触发mouse_up事件 [ 84%]

...** 初始化资源加载完成 */ private initF():void{ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseHandler); } private mouseHandler(e:laya.events.Event):void { var to...

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