大约有 990 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0065 秒)
Laya_社区(546) Laya3.0_api(152) laya_api(104) Laya2.0_api(96) Laya2.0_文档(39) Laya3.0_文档(22) Laya_示例(16) Laya2.0_示例(15)
...m EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,...可以使用数组结构如:[p1,p2,p3,...] ;如果需要回调单个...
来源: Laya3.0_api 发布时间: 20231115
...FF7F50"); this.button.pivot(w / 2, h / 2); //设置宽高(要接收鼠标事件必须设置宽高,否则不会被命中) this.button.size(w, h); this.button.x = (Laya.stage.width - TrackLength) / 2; this.button.y = Laya.stage.height / 2; this.button.on(Event.MOUSE_DOWN, this, this.onMouseDown)...
来源: Laya2.0_示例 发布时间: 20250221
...cher" EventDispatcher Class EventDispatcher EventDispatcher 类是可调度事件的所有类的基类。 Hierarchy EventDispatcher Resource Node Transform3D SoundChannel Sound HttpRequest Loader AnimatorState AnimatorState2D Physics AnimationPlayer AxiGamepad ButtonGamepad WebXRInput WebXRSessionMa...
来源: Laya3.0_api 发布时间: 20231115
...m EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,...可以使用数组结构如:[p1,p2,p3,...] ;如果需要回调单个...
来源: Laya3.0_api 发布时间: 20231115
...ld(this.sp); this.sp.on(ROTATE, this, this.onRotate); // 侦听自定义的事件 this.sp.on(Event.CLICK, this, this.onSpriteClick); } onSpriteClick(e) { let randomAngle = Math.random() * 180; //发送自定义事件 this.sp.event(ROTATE, [randomAngle]); } // 触发自定义的rotate事件 onRotate(...
来源: Laya2.0_示例 发布时间: 20250221
...m EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,...可以使用数组结构如:[p1,p2,p3,...] ;如果需要回调单个...
来源: Laya3.0_api 发布时间: 20231115
上层图层怎么传递事件给下层的图层 两个图层重叠的话,都on("click") 2018-01-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: 不是很明白你说的意...
来源: Laya_社区 发布时间: 20180109
button响应鼠标事件有两种方式,哪个更好用些? 一个是mouseHandler 一个是监听事件的button.on(Laya.Event.MOUSE_UP) 推荐用哪一种? 用button.on的方式是不是窗口关闭了我要手动移除事件? 2016-10-05 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20161005
绘制形状时事件不触发 function myRing(x,y,r1,color1,r2,color2) { this.sprite = new Laya.Sprite(); this.sprite.on('mousedown', this, on_down); this.sprite.graphics.drawCircle(x, y, r2, color2, color2, 2); this.sprite.graphics.drawCircle(x, y, r1, color1, color...
来源: Laya_社区 发布时间: 20161221
给Sprite 注册的触发器事件为什么没反应? ape.on( Event.TRIGGER_STAY, this, TRIGGER_STAY1); ape.on(Event.TRIGGER_ENTER, this, TRIGGER_ENTER1); ape.on(Event.TRIGGER_EXIT, this, TRIGGER_EXIT1); 鼠标拖拽一个Sprite 到 另外一个 Sprite 上,注册的上面3个...
来源: Laya_社区 发布时间: 20190202