大约有 498 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0065 秒)
Laya3.0_api(153) Laya_社区(116) laya_api(104) Laya2.0_api(96) Laya2.0_文档(14) Laya3.0_文档(12) Laya2.0_示例(2) Laya_示例(1)
... 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
...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
...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
...件监听 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
...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
... 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
...)。 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
...(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
...派发 event /** * 派发事件。 * @param type 事件类型。 * @param data (可选)回调数据。<b>注意:</b>如果是需要传递多个参数 p1,p2,p3,...可以使用数组结构如:[p1,p2,p3,...] ;如果需要回调单个参数 p ,且 p 是一个数组,则需要使...
来源: Laya3.0_文档 发布时间: 20251010
...有类的基类。 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