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

大约有 2,610 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0071 秒)

341. laya.resource.BaseTexture_API3.0 [ 84%]

...ference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once destroyUnusedResources Constructors constructor new BaseTexture(width: number, height: number, format: number): BaseTexture Overrides Resourc...

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

342. 输入设备-摇一摇 [ 84%]

...t Shake = Laya.Shake; Shake.instance.start(5, 500); Shake.instance.on(Laya.Event.CHANGE, this, this.onShake); console.text = '开始接收设备摇动\n'; } onShake() { const Shake = Laya.Shake; shakeCount++; console.text += "设备摇晃了" + shakeCount + "次\n"; if (shakeCount >= 3) { Shake.inst...

来源: Laya2.0_示例 发布时间: 20240930

343. Sprite-旋转缩放 [ 84%]

...dule laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_RoateAndScale { private ape: Sprite; private scaleDelta: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas ...

来源: Laya2.0_示例 发布时间: 20240930

344. laya.ani.swf.MovieClip [ 84%]

...l Classes | Index | Frames No Frames MovieClipProperties | Methods | Events Packagelaya.ani.swfClasspublic class MovieClipInheritanceMovieClip Sprite Node EventDispatcher Object MovieClip 用于播放经过工具处理后的 swf 动画。 Public Properties Hide Inherited Public Properties Sho...

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

345. layaair js 怎么监听手按住屏幕和松开屏幕事件 [ 84%]

...请: 与内容相关的链接 提交 1 个回复 非文 赞同来自: laya.events.Event.MOUSE_DOWN 和 laya.events.Event.MOUSE_UP 2016-11-10 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jy02250344 相关问题 【屏幕适配】在Lay...

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

346. spine动画放大后,遮罩显示不正常 [ 84%]

...      const         Templet = Laya.Templet,         Event = Laya.Event;         let mFactory = new Templet();         mFactory.on(Event.COMPLETE, this, this.parseComplete,[parent,mFactory]);         mFactory.on(Event.ERROR, this, this.onError);     ...

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

347. js socket 连接不上 [ 84%]

...03:8888"); // this.socket.connect("10.10.1.103",8888); this.socket.on(Laya.Event.OPEN, this, openHandler); //建立连接 this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); //接收到数据触发函数 this.socket.on(Laya.Event.CLOSE, this, closeHandler); //关闭事件 this.socket.on(Laya.E...

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

348. websocket连接, ws 时没问题,改成 wss 没反应 [ 84%]

...ectByUrl("wss://192.168.1.250:5000/websocket/");     this.socket.on(Laya.Event.OPEN, this, this.openHandler);     this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler);     this.socket.on(Laya.Event.CLOSE, this, this.closeHandler);     this.socket.on(Laya.Event.ERROR, this, this.erro...

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

349. panel问题 [ 84%]

...,仔细研究了源码,发现问题出在事件派发上 截图来自EventDispatcher 如图所示,当派发mouseup事件时,当前的type为mouseup,由于scrollBar移除了mouseUp事件,所以此时的this._events[type]是undefined,而源码中又去取undefined的run属性,肯定会报...

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

350. Bug:移动设备当两手指同时触摸屏幕,event.touches数组的长度有很大概率不对 [ 84%]

Bug:移动设备当两手指同时触摸屏幕,event.touches数组的长度有很大概率不对 两手指同时触摸屏幕,当两次按下MouseDown监听到的touches.length=2时,很大概率当松开一指,MouseUp时touches.length还是为2,再按下一指,MouseDown时touches.lengt...

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