大约有 542 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0225 秒)
....x = Laya.stage.width / 2; this.ball.y = Laya.stage.height / 2; // //获取鼠标位置 this.targetX = Laya.stage.mouseX; this.targetY = Laya.stage.mouseY; // //获得偏移 // let dx:number = this.targetX - this.ball.x; // let dy:number = this.targetY - this.ball.y; var ps = [{ x: 0, y: 200 }, { x:...
来源: Laya_社区 发布时间: 20171108
...代码处理: class demo { private down:Laya.Image; constructor() { // 鼠标事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseUp, [true]); } /** 按钮动画处理...
来源: Laya_社区 发布时间: 20180731
.../spine/goblins.js 可是我加了点击事件,根本不触发,另外鼠标在小人上时,鼠标指针要变成可点击的指针“小手的样子”,求大神解析 function parseComplete() { mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; //mArmatur...
来源: Laya_社区 发布时间: 20170818
...atcher isMouseEvent(type:String):Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatc...
来源: Laya2.0_api 发布时间: 20190513
...,也不显示 添加发光滤镜,会导致UI位置偏移 龙骨skeleton鼠标点击区域的设置 laya3.3更新后,之前写好的拖拽地图无法使用 怎么讲layaAir里的显示对象添加到matter.js里的物理引擎世界里 为什么给Sprite容器添加点击事件没反应 九宫...
来源: Laya_社区 发布时间: 20250821
...atcher isMouseEvent(type:String):Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatc...
来源: Laya2.0_api 发布时间: 20190513
...atcher isMouseEvent(type:String):Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatc...
来源: Laya2.0_api 发布时间: 20190513
...和点击区域? 求指点3d射线碰撞和UI点击穿透的问题 btn 鼠标移动上去默认文本颜色是绿色,我想换成其他颜色,如何操作? 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 救命!canvas定位后 点击区域偏移...
来源: Laya_社区 发布时间: 20170810
...以对你的按钮设置一下组织冒泡的产生舞台就不会触发了鼠标事件会冒泡,也就是子对象被命中,父对象也会收到相应的事件,无论父对象宽高是多少(可以通过event.stopPropagation()阻止事件冒泡)。 2018-04-18 0 6 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180418
...led : Boolean 是否禁用页面,设置为true后,会变灰并且禁用鼠标。UIComponent displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-on...
来源: Laya2.0_api 发布时间: 20190513