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

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

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

...iew var clientBox = Browser._container.getBoundingClientRect() this._point.setTo((e.pageX || e.clientX)-clientBox.x - win.pageXOffset - docElem.clientLeft,(e.pageY || e.clientY)-clientBox.y - win.pageYOffset - docElem.clientTop); // this._point.setTo(e.pageX || e.clientX, e.pageY || e.clientY); if (...

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

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

...ent()                 button.event(Laya.Event.CLICK, event.setTo(Laya.Event.CLICK, button, button));     2019-05-21 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 直接调用 sprite1CallBack(); 2018-07-24 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...

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

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

..._this._stage.event(/*laya.events.Event.MOUSE_OUT*/"mouseout",_this._event.setTo(/*laya.events.Event.MOUSE_OUT*/"mouseout",_this._stage,_this._stage));                         break ;                     case "mouseover":                         _thi...

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

4. list 中的scrollbar [ 87%]

...Point || (this._lastPoint=new Point());         this._lastPoint.setTo(Laya.stage.mouseX,Laya.stage.mouseY);         Laya.timer.clear(this,this.tweenMove);         Tween.clearTween(this);         Laya.stage.once(/*laya.events.Event.MOUSE_UP*/"mouseup",this,this.onSt...

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

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

...豆蚕  let event = new Laya.Event() button.event(Laya.Event.CLICK, event.setTo(Laya.Event.CLICK, button, button)); 2019-05-21 1 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 可以用自定义事件来实现你说的功能。具体的用法可以参考下这个帖子:自定义...

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

6. Sprite optimizeScrollRect = true 似乎有问题 [ 73%]

... this.height; this.mask.scrollRect = new Rectangle(); this.mask.scrollRect.setTo(0, 0, this.width, this.height); this.mask.optimizeScrollRect = true; this.addChild(this.mask); } this.initContent = function () { this.content = new Box(); this.content.width = this.width; this.content.autoSize = true; ...

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

7. 3D 鼠标检测 错乱 [ 70%]

...; break ; case "mousemove":; var mousePoint=Input3D._tempPoint; mousePoint.setTo(e.pageX,e.pageY); Laya.stage._canvasTransform.invertTransformPoint(mousePoint); this._mouseTouch.mousePositionX=mousePoint.x; this._mouseTouch.mousePositionY=mousePoint.y; this._mouseTouchRayCast(cameras); break ; case ...

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

8. 请问在2.0版本的js中,如何获取mouse_move的鼠标坐标 [ 69%]

...rrentTarget=[object Object] game.js:116 target=[object Object] game.js:116 setTo=function (type,currentTarget,target){ this.type=type; this.currentTarget=currentTarget; this.target=target; return this; } game.js:116 stopPropagation=function (){ this._stoped=true; } */ } 2018-10-31 添加评论 免...

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

9. image.drawToCanvas方法获取的一直是空的png [ 68%]

...得好麻烦啊 ,请问一下有别的方法吗 源代码中Handler中的setTo()方法 如何检测Animation动画播放完毕后去执行方法? 節點的destroy方法參數默認為true時是否會遞歸調用子對象的destroy方法? onOpen方法是位于哪个类下面? 问题状态 最...

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

10. 如何能监听到TouchStart和TouchEnd事件 [ 67%]

... * @return 返回当前 Event 对象。          */         setTo(type: string, currentTarget: laya.display.Sprite, target: laya.display.Sprite): Event;         /**          * 防止对事件流中当前节点的后续节点中的所有事件侦听器进行处理。  ...

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