```swift
#鼠标左键点击输出点击位置坐标
func _input(event):
	# 检查是否是鼠标左键按下事件
	if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT and event.pressed:
		# 获取并打印全局坐标
		var global_pos = get_global_mouse_position()
		print("Global mouse position:", global_pos)
```

```swift
		#调用本地文件选择器（C#版）
        var dialog = new FileDialog();
        dialog.UseNativeDialog = true;
        dialog.Access = FileDialog.AccessEnum.Filesystem;
        dialog.FileSelected += file => GD.Print(file);
        dialog.Show();
```

```swift
#调用本地文件选择器（gdscript）
var dialog = FileDialog.new()
dialog.file_mode=FileDialog.FILE_MODE_OPEN_FILE
dialog.use_native_dialog = true
dialog.file_selected.connect(on_selected)
dialog.show()
v func on_selected(file_path):
print(file_path)
```

