大约有 3 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0020 秒)
...测完毕。 1. Mouse Enabled: 默认为false,如果在脚本代码中监听鼠标事件,则会自动设置本对象及父节点的MouseEnabled属性值都为 true。但若将父节点的MouseEnabled的值手动设置为false,即使进行了鼠标事件监听,父节点的MouseEnabled值也...
来源: Laya3.0_文档 发布时间: 20250103
...理系统的特性有: 3.1 2D和3D统一接口, 都可以通过事件监听方式和Laya.Script命名函数方式处理输入。例如: this.aNode.on(Laya.Event.CLICK, ()=> { console.log("clicked"); }); class MyScript extends Laya.Script { //脚本事件 onMouseClick(e:Event) { console.log(...
来源: Laya3.0_文档 发布时间: 20250310
...: //在CameraControll.ts类下的onStart()方法中,加入鼠标按下监听 //Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); //鼠标点下事件,处理发射射线,检测碰撞物体 onMouseDown(e: Laya.Event) { let point = new Laya.Vector2(); point.x = Laya.stage.mouseX; poi...
来源: Laya3.0_文档 发布时间: 20240910