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

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

31. 循环添加一组按钮事件无法正常使用 [ 89%]

...          Laya.stage.addChild(b);                 b.on(Event.MOUSE_DOWN, this, mouseHandler);                 b.on(Event.MOUSE_MOVE, this, mouseHandler);                 b.on(Event.MOUSE_UP, this, mouseHandler);                 trace("addEvent")...

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

32. 2D物理-碰撞过滤器 [ 89%]

...s.createHouse(); for (let i = 1; i mouseJoint).onMouseDown); Laya.stage.on(Event.MOUSE_UP, this, this.destoryJoint); Laya.stage.on(Event.MOUSE_OUT, this, this.destoryJoint); // 方案二,自己实现,可以实现更大程度的控制 // Laya.stage.on(Event.MOUSE_MOVE, this, this.mouseMove); // L...

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

33. laya拖拽在部分机型(一部XR)StageX不对 [ 89%]

...部分机型(一部XR)StageX不对 //注册事件  Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseEvent);  Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_OUT, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseE...

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

34. CameraMoveScript.as在哪儿下载群里的有错 [ 89%]

..._initialize(owner:Sprite3D):void { super._initialize(owner); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); Laya.stage.on(Event.MOUSE_OUT, this, mouseOut); var camera:BaseCamera = owner.scene.currentCamera; 没有了 -- currentCamera 2017-02-18 添加...

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

35. unity导出模型在laya加载报错 [ 89%]

.../h5engine/trunk/laya/mytalkingtom_demo/bin/libs/laya.d3.js:17775:10)   at EventHandler.__proto.runWith (file:///E:/svn/210/h5engine/trunk/laya/mytalkingtom_demo/bin/libs/laya.core.js:1410:41)   at Loader.__proto.event (file:///E:/svn/210/h5engine/trunk/laya/mytalkingtom_demo/bin/libs/laya.core.js:...

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

36. socket.sent [ 89%]

...接 this.socket.connectByUrl("ws://localhost:8899"); 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.errorHandler); } private...

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

37. 鼠标滚轮滚动事件 [ 89%]

鼠标滚轮滚动事件 Laya.Event.MOUSE_DOWN // 左键按下 Laya.Event.MOUSE_UP // 左键抬起 Laya.Event.CLICK // 左键点击 Laya.Event.RIGHT_MOUSE_DOWN // 右键按下 Laya.Event.RIGHT_MOUSE_UP // 右键抬起 Laya.Event.RIGHT_CLICK // 右键单击 Laya.Event.MOUSE_MOVE // 鼠标移动 Laya...

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

38. 请问如何给所有按钮点击事件增加一个音效 [ 89%]

...on.as中处理下         /**          * 对象的 <code>Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK</code> 事件侦听处理函数。          * @param e Event 对象。          */         protected function onMous...

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

39. 鼠标交互-Hold [ 88%]

...create(this, this.createApe)); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(apePath); let texture = Laya.loader.getRes(apePath); this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.pos(Laya.stage.width / 2, Laya.stage.height ...

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

40. Laya的Mouse Event有没有类似COCOS-JS的event.touch.getDelta() [ 88%]

Laya的Mouse Event有没有类似COCOS-JS的event.touch.getDelta() 在参考一些代码,发现Cocos-JS有个api是touchmove中,获取移动的增量的:event.touch.getDelta(). 挺好的.但没有找到Laya中有类似的. 2018-10-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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