I've been looking through the demo and I can't figure out what's making it so you can click through the window. could you explain how it works, or what's causing it so I can find it on the docs or something pls
Sorry for the late reply; thank you for leaving a comment.
If you visit this link, you will see the function _update_click_polygon, which updates the mouse_passthrough_polygon property of the Window with every physics frame via the _physics_process call. Basically, the mouse_passthrough_polygon property decides which part of the screen is rendered and clickable at the same time. I hope this helps!
I rarely check itch.io about this project since it is on GitHub. I can provide further help on GitHub via issues if you happen to need more in the future!
← Return to tool
Comments
Log in with itch.io to leave a comment.
I've been looking through the demo and I can't figure out what's making it so you can click through the window. could you explain how it works, or what's causing it so I can find it on the docs or something pls
Hello!
Sorry for the late reply; thank you for leaving a comment.
If you visit this link, you will see the function
_update_click_polygon
, which updates themouse_passthrough_polygon
property of the Window with every physics frame via the_physics_process
call. Basically, themouse_passthrough_polygon
property decides which part of the screen is rendered and clickable at the same time. I hope this helps!I rarely check itch.io about this project since it is on GitHub. I can provide further help on GitHub via issues if you happen to need more in the future!
Thanks