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

大约有 439 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)

141. laya.device.Shake [ 57%]

...:Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中...

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

142. laya.media.Sound [ 57%]

...事件。 EventDispatcher  load(url:String):void 加载声音。 Sound off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中...

来源: laya_api 发布时间: 20170929

143. tiledMap类createMap()创建地图 如何理解这个viewRect视口区 [ 57%]

...    }         //console.log(mX,mY)         Laya.stage.off(Event.MOUSE_MOVE, this, mouseMove);     }      // 窗口大小改变,把地图的视口区域重设下     function resize()     {         //改变地图视口大小         tiledMap.chan...

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

144. laya.d3.core.material.Material_API3.0 [ 57%]

...ByIndex getVector4 getVector4ByIndex hasDefine hasListener isCreateFromURL off offAll offAllCaller oldparseEndEvent on once removeDefine setBool setBoolByIndex setBuffer setBufferByIndex setColor setColorByIndex setDefine setFloat setFloatByIndex setInt setIntByIndex setMatrix4x4 setMatrix4x4ByIndex...

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

145. [LayaAir3]右键up删除不了监听 [ 57%]

... 2025-02-22 11:10 @仓颉:需要在右键up的回调函数里面,手动off掉RIGHT_MOUSE_DOWN与RIGHT_MOUSE_UP的事件监听哈。

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

146. 请问有没有方法能够获取“鼠标是否处于按下状态”? [ 57%]

...ge.on(Event.MOUSE_MOVE, this, onMouseMove); onMouseUp  中   Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); 也可以写个变量  ,down的时候为true,否则为false  如"cuixueying"  回答的一样! 2017-04-21 3 0 分享 微博 QZONE 微信 cuixueying 赞同来自: zhang92tong ...

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

147. sprite 设置为静态变量后,无法从舞台移除 [ 56%]

...); function onClick():void { // TODO Auto Generated method stub Laya.stage.off(Event.CLICK,this,onClick); Laya.stage.removeChild(sp); Loader.clearRes("background.jpg"); sp.destroy(); } } } } 2016-09-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登...

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

148. laya.media.Sound [ 56%]

...事件。 EventDispatcher  load(url:String):void 加载声音。 Sound off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中...

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

149. laya.d3.core.material.unlit.UnlitTestMaterial_API3.0 [ 56%]

...ByIndex getVector4 getVector4ByIndex hasDefine hasListener isCreateFromURL off offAll offAllCaller oldparseEndEvent on once removeDefine setBool setBoolByIndex setBuffer setBufferByIndex setColor setColorByIndex setFloat setFloatByIndex setInt setIntByIndex setMatrix4x4 setMatrix4x4ByIndex setShader...

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

150. Native IOS下获取陀螺仪数据为0 [ 55%]

...陀螺仪的移动                      Laya.Gyroscope.instance.off(Laya.Event.CHANGE, this, this.onOrientationChange);                      return;             }             console.log(`alpha = ${info.alpha} beta = ${info.beta} gamma = ${info.gamma} and x = ...

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