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

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

441. js socket 连接不上 [ 77%]

...触发函数 this.socket.on(Laya.Event.CLOSE, this, closeHandler); //关闭事件 this.socket.on(Laya.Event.ERROR, this, errorHandler); //连接出错 function openHandler(event){ //正确建立连接 this.socket.send('foo','OOOO'); } function receiveHandler(msg){ console.log(event); //接收到数...

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

442. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 77%]

....I.isReg) { this._regMode(); } else { this._forgetMode(); } // 添加取消事件 this.lb_cancel.on(Laya.Event.CLICK, this, () => { // 返回登陆页 Laya.Scene.open("Auth.scene"); }); // 遍历数组添加事件 this._arrInput.forEach((element, index) => { element.on(Laya.Event.FOCUS, this, ...

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

443. laya.ui.ProgressBar [ 77%]

...区域进行碰撞。 Sprite hitTestPrior : Boolean = false 指定鼠标事件检测是优先检测自身,还是优先检测其子对象。鼠标事件检测发生在鼠标事件的捕获阶段,此阶段引擎会从stage开始递归检测stage及其子对象,直到找到命中的目标对象...

来源: Laya2.0_api 发布时间: 20190513

444. laya.device.motion.Gyroscope [ 77%]

...e(singleton:int)Gyroscope event(type:String, data:* = null):Boolean 派发事件EventDispatcher hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 EventDispatcher isMouseEvent(type:String):Boolean 检测指定事件类型是否...

来源: Laya2.0_api 发布时间: 20190513

445. laya.d3.terrain.Terrain [ 77%]

...isableLight():voidTerrain event(type:String, data:* = null):Boolean 派发事件EventDispatcher frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 Node frameOnce(del...

来源: Laya2.0_api 发布时间: 20190513

446. Dialog的onShow方法重写无效 [ 77%]

...继承的View类,很奇怪,为什么Dialog类就不能响应Event.ADDED事件呢?   补充下:我想实现的功能就是dialog和view每次打开都执行onshow方法来操作数据   2016-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

447. hitTestPrior无效 [ 77%]

hitTestPrior无效 我想利用hitTestPrior进行鼠标事件监测: viewStack.on(Laya.Event.MOUSE_DOWN, this, this.onStageMouseDown); img.on(Laya.Event.MOUSE_DOWN, this, this.onImageMouseDown); viewStack.addChild(img);   然而不管设置是true还是false,都是子元素先检测到mousedow...

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

448. laya.d3.core.light.DirectionLight_API3.0 [ 77%]

...m EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,...可以使用数组结构如:[p1,p2,p3,...] ;如果需要回调单个...

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

449. WebSocket通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 76%]

...1.3 工作原理二、Laya.Sokcet通信基础2.1 建立连接的方式2.2 事件监听与处理三、webSocket数据通信实例3.1 字符串数据通信3.2 二进制数据通信3.3 基于Laya.Byte二进制通信四、其它APIWebSocket通信 Author: Charley WebSocket 协议因其全双工、低延...

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

450. laya.device.motion.Gyroscope [ 76%]

...e(singleton:int)Gyroscope event(type:String, data:* = null):Boolean 派发事件EventDispatcher hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 EventDispatcher isMouseEvent(type:String):Boolean 检测指定事件类型是否...

来源: laya_api 发布时间: 20170929