大约有 2,092 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0092 秒)
Laya_社区(1702) Laya3.0_api(155) Laya2.0_api(97) laya_api(63) Laya2.0_文档(54) Laya3.0_文档(20) Laya2.0_示例(1)
...aya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ //监听有没有地板要移除 while(this.dieFloorList.lenght > 0){ var floor = this.dieFloorList.shift(); floor.removeSelf(); } } /** * 增加地板 */ _proto.addFloor = function(){ var floor = new Floor(); floor.init(); ...
来源: Laya_社区 发布时间: 20160728
...ion.clearWatch()并传入该ID值来取消由watchPosition()注册的位置监听器。 /** * 监视设备当前位置。回调处理器在设备位置改变时被执行。 * @param onSuccess 带有唯一<code>Position</code>参数的回调处理器。 * @param onError 可选的。带有...
来源: Laya3.0_文档 发布时间: 20251010
... 只读 upload XMLHttpRequestUpload 可以在 upload 上添加一个事件监听来跟踪上传过程。 withCredentials boolean 表明在进行跨站(cross-site)的访问控制(Access-Control)请求时,是否使用认证信息(例如cookie或授权的header)。 默认为 false timeout number 请...
来源: Laya3.0_文档 发布时间: 20250104
...le.log("✅ 音乐播放成功"); // 添加错误监听,在播放过程中出错时重试 channel.on(Laya.Event.ERROR, this, (err: any) => { console.error("播放过程中出错:", err); ...
来源: Laya_社区 发布时间: 20250930
...s.player.x = 32 * 8; this.player.y = 32 * 4; this.addChild(this.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(laya.events.Event.MOUSE_UP, this, this.onMouseUp); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, thi...
来源: Laya_社区 发布时间: 20160803
... in laya/events/EventDispatcher.ts:146 移除caller为target的所有事件监听 Parameters caller: any caller对象 Returns EventDispatcher on on(type: string, listener: Function): EventDispatcher on(type: string, caller: any, listener: Function, args?: any[]): EventDispatcher Inherited from Event...
来源: Laya3.0_api 发布时间: 20231115
...offAllCaller(caller:*):EventDispatcher 移除caller为target的所有事件监听 EventDispatcher on(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher 使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知。 Even...
来源: Laya2.0_api 发布时间: 20190513
... in laya/events/EventDispatcher.ts:146 移除caller为target的所有事件监听 Parameters caller: any caller对象 Returns EventDispatcher offAxisEvent offAxisEvent(index: number, type: string, caller: any, listener: Function): void Defined in laya/d3/WebXR/core/WebXRInput.ts:184 remove axis even...
来源: Laya3.0_api 发布时间: 20231115
...们考虑后,不建议您这样来操作对象,您可以在sp3上添加监听来进行销毁,而不是在sp1的逻辑内销毁sp3操作;如果确实有这方面的需求的话,建议您在遍历中进行容错处理来避免这个问题。 zyy • 2021-11-08 19:40 test对象被移除,testS...
来源: Laya_社区 发布时间: 20211105
...ero.pos(200,500); // 放置到舞台上 Laya.stage.addChild(this.hero); // 监听舞台的鼠标移动事件 Laya.stage.on(Laya.Event.MOUSE_MOVE,this,onMouseMove); // 手动创建敌人 // createEnemy(10); // 定时器自动循环创建敌人 Laya.timer.frameLoop(1,this,onLoop); } function onLoop() ...
来源: Laya_社区 发布时间: 20170525