去掉ui相机的alignCanvasWithScreen,将Camera的OrthoHeight调小,拉近相机,用如下方式计算鼠标点击点,位置偏移较大
onMouseDown(event: EventMouse) {
let touchPos = event.getLocation();
let wpos = v3(touchPos.x, touchPos.y, 0);
camera.screenToWorld(wpos, wpos);
let uiPos = camera.convertToUINode(wpos, avatarLayer);
}