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

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

41. laya.net.Socket_API3.0 [ 78%]

... URL 类似 ws://yourdomain:port。 Returns void event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是...

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

42. laya.d3.core.Avatar_API3.0 [ 78%]

...renceCount cpuMemory gpuMemory Methods _addReference _clearReference _cloneDatasToAnimator _removeReference _setCPUMemory _setCreateURL _setGPUMemory clone cloneTo destroy event hasListener isCreateFromURL off offAll offAllCaller on once _parse destroyUnusedResources load Constructors constructor ne...

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

43. laya.gltf.glTFResource_API3.0 [ 78%]

...erence Defined in laya/resource/Resource.ts:220 Returns void _parse _parse(data: glTF, createURL: string, progress?: IBatchProgress): Promise<void> Defined in laya/gltf/glTFResource.ts:77 Parameters data: glTF createURL: string Optional progress: IBatchProgress Returns Promise<void> _rem...

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

44. [LayaAirIDE3]2d相机打包后问题 [ 78%]

...件监听         this.joystickScript.owner.on(Joystick.MOVE, this, (data: any) => {             this.playerScript.move(data.direction, data.force);         });          this.joystickScript.owner.on(Joystick.END, this, () => {             this.playerScript.stop();   ...

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

45. 微信小游戏加载资源问题 [ 78%]

...gr.fs.readFile({ filePath: fileUrl, encoding: encoding, success: function (data) { callBack != null && callBack.runWith([0, data]); }, fail: function (data) { if (data && readyUrl != "") MiniFileMgr.downFiles(readyUrl, encoding, callBack, readyUrl, isSaveFile, fileType); el...

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

46. [LayaAirIDE3]【插件开发】配置方式可以生成非常复杂的界面的部分疑惑 [ 77%]

... async create() { let panel = IEditor.GUIUtils.createInspectorPanel(); let data = Editor.getSettings("SplitAtlasSetting").data; panel.allowUndo = true; panel.inspect(data, "SplitAtlasSetting"); this.contentPane = panel; this.title = "图集分割工具"; } protected onShown() { (this.contentPane as ...

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

47. laya.media.SoundChannel_API3.0 [ 77%]

...)。 Parameters v: number Returns void Methods event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是...

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

48. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 77%]

...(handler!=null){ return handler; } }  return null; } public function Send(data:String):void { socket.send(data); } private function onSocketOpen(e:*=null):void { trace("Service connection successful!"); MsgManger.SendMsg("SockeConnetSucc"); } private function onSocketClose(e:*=null):void { trace("S...

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

49. 事件管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 77%]

...派发 event /** * 派发事件。 * @param type 事件类型。 * @param data (可选)回调数据。<b>注意:</b>如果是需要传递多个参数 p1,p2,p3,...可以使用数组结构如:[p1,p2,p3,...] ;如果需要回调单个参数 p ,且 p 是一个数组,则需要使...

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

50. laya.events.EventDispatcher [ 77%]

...有类的基类。 Public Methods  MethodDefined By  event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 EventDispatcher  isMouseEvent(type:String):Boole...

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