Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI in 3D: When the viewport uses the 2d or viewport stretch mode, the 3D GUI mouse coordinates are broken #515

Closed
RedHeadphone opened this issue Aug 28, 2020 · 3 comments
Labels

Comments

@RedHeadphone
Copy link

when I make the screen on stretch the mouse doesn't take exact position to 3d gui.
It even happens when game is on full screen mode and viewport height and width is not same as displaying screen.

So maybe the mouse input is based on pixel and not window which is not I want

Any Solution will helpful . Thanks in advance.

@RedHeadphone RedHeadphone changed the title when screen is on stretch the 3d button doesn't work exactly when screen is on stretch the 3d button doesn't work exactly in 3d gui Aug 28, 2020
@QbieShay
Copy link

Hello @RedHeadphone , are you referring to a demo project? Or is this a bug that you are experiencing in your own project?

@Calinou
Copy link
Member

Calinou commented Aug 29, 2020

This is likely caused by godotengine/godot#34805. See the workarounds described in that issue, which we can apply to this demo.

@Calinou Calinou changed the title when screen is on stretch the 3d button doesn't work exactly in 3d gui GUI in 3D: When the viewport uses the 2d or viewport stretch mode, the 3D GUI mouse coordinates are broken Aug 29, 2020
@QbieShay
Copy link

@RedHeadphone I will close this issue as a duplicate of godotengine/godot#34805

This repository is for reporting issues related to the Godot demo projects. If you find other bugs in the engine, please report them here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants