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

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

21. 取消监听鼠标移动事件,取消不了 [ 87%]

...不了 Laya.stage.off(Laya.Event.MOUSE_MOVE,this,null); 第三个参数是函数,不能为null吗?是不是和on绑定时的同一个函数,如果on里面用匿名函数,off第三个参数怎么写? 2018-06-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

22. websocket连接出错 [ 87%]

...ocket.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){ //正确建立连接 this.socket.send('foo','OOOO')...

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

23. laya.d3.webxr.core.AxiGamepad_API3.0 [ 87%]

... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...

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

24. laya.events.EventDispatcher_API3.0 [ 87%]

... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: any[] Returns EventDispatcher offAll...

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

25. laya.media.Sound_API3.0 [ 87%]

... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...

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

26. laya.d3.animation.AnimationTransform3D_API3.0 [ 86%]

... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...

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

27. WebSocket发送与接收数据(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 86%]

... } private receiveHandler(msg: any = null): void { ///接收到数据触发函数 } private closeHandler(e: any = null): void { //关闭事件 } private errorHandler(e: any = null): void { //连接出错 } } new Game(); ``` 注意:我们看到实例化Byte和Socket的时候都设置了endian,这...

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

28. laya.events.EventDispatcher [ 85%]

... Parameters type:String — 事件的类型。  caller:* — 事件侦听函数的执行域。  listener:Function — 事件侦听函数。  onceOnly:Boolean (default = false) — (可选)如果值为 true ,则只移除通过 once 方法添加的侦听器。 ReturnsEventDispatcher — 此 Eve...

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

29. laya.physics.Physics_API3.0 [ 85%]

...worldRoot 时平移一次,其他情况请配合 updatePhysicsByWorldRoot 函数使用 Returns Sprite Defined in laya/physics/Physics.ts:237 物理世界根容器,将根据此容器作为物理世界坐标世界,进行坐标变换,默认值为stage 设置特定容器后,就可整体位移...

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

30. js socket 连接不上 [ 85%]

...ocket.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){ //正确建立连接 this.socket.send('foo','OOOO')...

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