大约有 892 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0063 秒)
Laya_社区(516) Laya_示例(65) Laya3.0_api(65) Laya2.0_api(62) Laya2.0_文档(60) laya_api(57) Laya2.0_示例(51) Laya3.0_文档(16)
...100,"#ffffff"); xxx.size(100, 100); xxx.mouseEnabled = true; xxx.x = (Laya.stage.width - xxx.width) / 2; xxx.y = (Laya.stage.height - xxx.height) / 2; Laya.stage.addChild(xxx); xxx.on(Laya.Event.CLICK, this, this.onXXX); private onXXX() { console.debug("Hello"); } 2017-06-06 添加评论 免费...
来源: Laya_社区 发布时间: 20170606
...Distance = Vector3.distance(this.transform.position, this.AroundPos); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouse...
来源: Laya_社区 发布时间: 20190224
...台上有个文本框 我想默认焦点就在文本框上 Laya.stage.focus=文本框的var 这么写不好使 2017-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 ymsdandan 赞同来自: 监...
来源: Laya_社区 发布时间: 20171108
... 键是处于活动状态 (true) 还是非活动状态 (false)。 Event stageX : Number[read-only] 鼠标在 Stage 上的 X 轴坐标Event stageY : Number[read-only] 鼠标在 Stage 上的 Y 轴坐标Event target : Sprite 事件目标触发对象。Event touches : Array[read-only] 触摸...
来源: laya_api 发布时间: 20170929
...ft 键是处于活动状态 (true) 还是非活动状态 (false)。 Event stageX : Number[read-only] 鼠标在 Stage 上的 X 轴坐标Event stageY : Number[read-only] 鼠标在 Stage 上的 Y 轴坐标Event target : Sprite 事件目标触发对象。Event touches : Array[read-only] 触摸点列...
来源: Laya2.0_api 发布时间: 20190513
...te function omTemLoaded():void { mArmature=mFactory.buildArmature(0); Laya.stage.addChild(mArmature); Laya.stage.on(Event.CLICK,this,onClick); mArmature.play(0,false);//设置初始位置 mArmature.index=this.index; mArmature.pos(500,500) } private function onClick():void { mArmature.play("stand",tr...
来源: Laya_社区 发布时间: 20170509
...的触摸点失效,单点的情况下会获得三个触摸点信息Laya.stage.on(Laya.Event.MOUSE_DOWN, this, (data: Laya.Event) => { let str = ""; if (data.touches) { for (let i = 0; i < data.touches.length; i++) { str += ` {${i} : ${data.touches[i].pos.toString()}}`; } } console.log("drag ...
来源: Laya_社区 发布时间: 20230823
...,设置为true后,会变灰并且禁用鼠标。Component displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以...
来源: laya_api 发布时间: 20170929
...检测本节点。当值为false时,会优先检测子节点,一直到stage上的全部节点都递归检测完毕。 1. Mouse Enabled: 默认为false,如果在脚本代码中监听鼠标事件,则会自动设置本对象及父节点的MouseEnabled属性值都为 true。但若将父节点...
来源: Laya3.0_文档 发布时间: 20250103
...splay.Input; import laya.display.Sprite; import laya.display.Stage; import laya.ui.Panel; import laya.utils.Browser; import laya.webgl.WebGL; public class Yj_Customer { private var panel:Panel; public...
来源: Laya_社区 发布时间: 20180612