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

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

1. 分享问题解决,关键词:canvas不在左上角,鼠标点击位置偏移怎么办 [ 100%]

...定位在左上角,导致点击事件偏移问题首先,请找到代码initevent initEvent(e, nativeEvent = null) { var _this = this; _this._event._stoped = false; _this._event.nativeEvent = nativeEvent || e; _this._target = null; var docElem = document.documentElement var win = document.defaultView...

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

2. laya.resource.Texture [ 92%]

...All Classes | Index | Frames No Frames TextureProperties | Methods | Events Packagelaya.resourceClasspublic class TextureInheritanceTexture EventDispatcher ObjectSubclasses RenderTarget2D Texture 是一个纹理处理类。 Public Properties PropertyDefined By  _atlasID : int = -1Texture ...

来源: laya_api 发布时间: 20170929

3. laya.resource.Texture [ 91%]

...All Classes | Index | Frames No Frames TextureProperties | Methods | Events Packagelaya.resourceClasspublic class TextureInheritanceTexture EventDispatcher Object Texture 是一个纹理处理类。 Public Properties PropertyDefined By  bitmap : Texture2D 获取位图。 Texture  destroy...

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

4. 如何用代码触发点击事件? [ 91%]

...点击事件? 比如sprite1注册了点击事件: this.sprite1.on(Laya.Event.CLICK, this, this.sprite1CallBack); 怎样不用点击,而用代码去触发? 是 this.sprite1.event(Laya.Event.CLICK) 这样吗? 2018-07-24 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

5. laya.events.Event_API3.0 [ 90%]

... Public/Protected All Inherited Externals Only exported Menu Globals "laya/events/Event" Event Class Event Event 是事件类型的集合。一般当发生事件时,Event 对象将作为参数传递给事件侦听器。 Hierarchy Event Index Constructors constructor Properties button currentTarget...

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

6. 向官方反映1.75引擎库后 事件执行 发生的bug [ 88%]

...      *执行事件处理。         */         __proto.runEvent=function(){             var len=this._eventList.length;             if (!len)return;             var _this=this;             var i=0;             var localevnetList = this._e...

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

7. laya.resource.Texture_API3.0 [ 87%]

...eReference _setCPUMemory _setCreateURL _setGPUMemory destroy disposeBitmap event getCachedClip getPixels getTexturePixels hasListener isCreateFromURL load off offAll offAllCaller on once recoverBitmap setTo create createFromTexture destroyUnusedResources Constructors constructor new Texture(source?:...

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

8. list 中的scrollbar [ 87%]

list 中的scrollbar 给list中的scrollBar添加Laya.Event.END 事件,会触发两次,开始点击拖动触发一次,拖动结束后触发一次,源码里是直接run的没有回调参数,而且改了源码之后回调参数也还是end类型 版本号是2.6.0 2020-11-18 添加评论 免费帖 -->...

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

9. 如何用代码调用按钮的点击事件(如as3的dispatchEvent)? [ 86%]

如何用代码调用按钮的点击事件(如as3的dispatchEvent)? 如何用代码调用按钮Button的点击事件(如as3的dispatchEvent)?即比如界面上有个按钮,点击会执行click事件操作,而我再给这个按钮和键盘绑定一个快捷键,当按下这个快捷...

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

10. 事件管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 81%]

...是事件1.2 事件的分类2. 引擎内置的事件2.1 事件类型 Laya.Event2.2 事件派发 Laya.EventDispatcher2.3 事件处理 Laya.Handler3. 自定义的事件事件管理 1. 认识事件 1.1 什么是事件 事件Event指的是由系统事先设定的、能被对象识别和响应的动作...

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