大约有 51 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)
...bin-wrapper\node_modules\got\index.js:182:22) at Object.onceWrapper (events.js:300:26) at ClientRequest.emit (events.js:210:5) at TLSSocket.socketErrorListener (_http_client.js:406:9) at TLSSocket.emit (events.js:210:5) at emitErrorNT (internal/streams/destroy.js:92:8) ...
来源: Laya_社区 发布时间: 20200211
...逻辑处理。 2.1 支持的事件类型 LayaAir中的HttpRequest继承自EventDispatcher,因此支持多种事件类型,用于HTTP请求后的响应逻辑,常用的事件有: Event.PROGRESS:用于跟踪 HTTP 请求的上传和下载进度,例如文件下载时,值为1时表示已完...
来源: Laya3.0_文档 发布时间: 20251010
... Public/Protected <em>Allem> Inherited Externals Only exported Menu Globals "laya/events/Keyboard" Keyboard Class Keyboard Keyboard 类的属性是一些常数,这些常数表示控制游戏时最常用的键。 Hierarchy Keyboard Index Properties A ALTERNATE B BACKQUOTE BACKSLASH BACKSPACE C CAPS_LOCK C...
来源: Laya3.0_api 发布时间: 20231115
...,完成事件,错误事件等 /** * 请求进度改变时调度。 * @eventType Event.PROGRESS * */ /*[Event(name = "progress", type = "laya.events.Event")]*/ /** * 请求结束后调度。 * @eventType Event.COMPLETE * */ /*[Event(name = "complete", type = "laya.events.Event")]*/ /** * 请求...
来源: Laya3.0_文档 发布时间: 20250104
...过程,因此建立连接后,通常要注册以下事件监听器: Event.OPEN:连接成功建立后触发。 Event.MESSAGE:收到服务器发送的数据时触发。 Event.CLOSE:连接关闭时触发。 Event.ERROR:连接出错时触发。 示例代码: // 注册事件监听示例 th...
来源: Laya3.0_文档 发布时间: 20251010
...Verify that <em>allem> layout Begin/End c<em>allem>s match UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) MissingReferenceException: The object of type 'SkinnedMeshRenderer' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not dest...
来源: Laya_社区 发布时间: 20240111
...Child(this.mapDiv); // 适应窗口尺寸 this.refit(); Laya.stage.on(Laya.Event.RESIZE, this, this.refit); // 初始化地图 this.map = new this.BMap.Map(this.mapDiv); // 禁用部分交互 //this.map.disableDragging(); this.map.disableKeyboard(); this.map.disableScrollWheelZoom(); this.map.disabl...
来源: Laya3.0_文档 发布时间: 20251010
...odule PomeloLaya{ export class Pomelo{ static DEBUG:boolean = true; static EVENT_IO_ERROR:string = "io-error"; static EVENT_CLOSE:string = "close"; static EVENT_KICK:string = "onKick"; static EVENT_HEART_BEAT_TIMEOUT:string = 'heartbeat timeout'; private JS_WS_CLIENT_TYPE:string = 'js-websocket'; pr...
来源: Laya_社区 发布时间: 20180119
.../LayaProject1/release/harmony/LayaProject1/libSysCapabilities/src/main/ets/event/HandleMessageUtils.ts:2:18 Currently module for 'liblaya.so' is not verified. If you're importing napi, its verification will be enabled in later SDK version. Please make sure the corresponding .d.ts file is provided an...
来源: Laya_社区 发布时间: 20250106
...Laya.Script命名函数方式处理输入。例如: this.aNode.on(Laya.Event.CLICK, ()=> { console.log("clicked"); }); class MyScript extends Laya.Script { //脚本事件 onMouseClick(e:Event) { console.log("clicked"); } } aNode.addComponent(MyScript); 以上两种方式是等价的,且在纯...
来源: Laya3.0_文档 发布时间: 20251010