大约有 2 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0013 秒)
...矩形"; //设置宽高(要接收鼠标事件必须设置宽高,否则不会被命中) deepSkyblueRect.size(100, 100); deepSkyblueRect.pos(10, 10); Laya.stage.addChild(deepSkyblueRect); deepSkyblueRect.on(Event.MOUSE_DOWN, this, this.onDown); } createDarkOrchidRect() { const Sprite = Laya.Spri...
来源: Laya2.0_示例 发布时间: 20260814
..., 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); Laya.stage.addChild(this.button...
来源: Laya2.0_示例 发布时间: 20260814