Open spiritfoxx opened 9 months ago
Hello @spiritfoxx ,
In its definition, it says that mouse_passthrough
, when true, will pass mouse events to the underlying window of the same application. I think it is referring to a multiple-window application layout by this rather than passing inputs directly to the OS by ignoring the whole Godot application you create, which I believe is the feature you seek.
I remember having similar trouble in the past, but in the end, I was not able to find a solution I was satisfied with so created this repository and utilized polygons to achieve almost the same behavior.
I wish I could be more helpful. Please let me know if you find anything useful regarding this situation!
Hello again,
I am aware of OS.set_window_mouse_passthrough
, which you have used in godot 3. I'm trying to figure out how to have the mouse passthrough for the entire window. You said you had trouble in the past, I'm guessing mouse_passthrough_polygon
is the only way to acomplish that in godot 4.
I just realized that I've used OS.set_window_mouse_passthrough
in the Godot 3 branch of this project after you said it. I checked the docs for Godot 3 and understood that OS.set_window_mouse_passthrough
was replaced with Window.set_mouse_passthrough_polygon
and mouse_passthrough
property is a new addition.
I believe the mouse_passthrough_polygon
property is the way to go regarding our situation, and mouse_passthrough
is added as a new property in accordance with the multi-window application support that came with Godot 4. Here is the official news concerning that update.
Nevertheless, please let me know if you find an alternative solution in the future. Thank you for opening this issue!
Hello, I came across your neat project. I wanted to know if it was possible to use
mouse_passthrough
in place ofmouse_passthrough_polygon
used in your function here. I am confused whymouse_passthrough
has no effect.Godot Docs Description of the Property
https://docs.godotengine.org/en/stable/classes/class_window.html#property-descriptions![screenshot](https://github.com/atadenizoktay/godot-click-through-transparent-window/assets/90113208/52a92859-5eb5-41a4-b871-7c426ce88113)