godotengine / godotengine/godot-docs

Get mouse position when get_viewport().set_embedding_subwindows(false)

Open
#7,147 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Your Godot version:**
4.0.2

**Issue description:**
You can not longer get window position using OS.get_window_position(). You also can't rely on global mouse if you have multiple windows. I suggest we update the documentation to tell people to do: Vector2(get_parent().position) + get_local_mouse_position()

**URL to the documentation page (if already existing):**
https://docs.godotengine.org/en/stable/classes/class_os.html
https://docs.godotengine.org/en/stable/classes/class_window.html

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.