大约有 5 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0017 秒)
...rect.y = (Laya.stage.height - 200) / 2; Laya.stage.addChild(rect); //增加鼠标事件 rect.on(Event.MOUSE_DOWN, this, mouseHandler); rect.on(Event.MOUSE_UP, this, mouseHandler); rect.on(Event.CLICK, this, mouseHandler); rect.on(Event.RIGHT_MOUSE_DOWN, this, mouseHandler); rect.on(Event.RIGHT_MOUSE...
来源: Laya_示例 发布时间: 20241117
...名称 deepSkyblueRect.name = "天蓝色矩形"; //设置宽高(要接收鼠标事件必须设置宽高,否则不会被命中) deepSkyblueRect.size(100, 100); deepSkyblueRect.pos(10, 10); Laya.stage.addChild(deepSkyblueRect); deepSkyblueRect.on(Event.MOUSE_DOWN, this, onDown); } function creat...
来源: Laya_示例 发布时间: 20241117
...pVector3 = new Laya.Vector3(0, 1, 0); var _vector3 = new Laya.Vector3(); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { if (_outHitInfo.distance !== -1) { Laya.Vector3.add(_outHitInfo.position, _offset, _vector3); Laya.Tween.to(_position, {x: _vector3.x, y: _vector3.y, z: _vec...
来源: Laya_示例 发布时间: 20241117
...= new Laya.Vector3(0, 0, 0); var _offset = new Laya.Vector3(0, 0.25, 0); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { if (_outHitInfo.distance !== -1) { var sphere = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh(0.25, 16, 16))); var mat = new Laya.StandardMaterial...
来源: Laya_示例 发布时间: 20241117
...abel.fontSize = 50; label.color = "#40FF40"; Laya.stage.addChild(label); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { var str = ""; for (var i = 0; i ; private camera: Laya.Camera; private label: Laya.Label; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Lay...
来源: Laya_示例 发布时间: 20241117