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

2D Viewport Issues #58204

Closed
rakkarage opened this issue Feb 16, 2022 · 4 comments
Closed

2D Viewport Issues #58204

rakkarage opened this issue Feb 16, 2022 · 4 comments

Comments

@rakkarage
Copy link
Contributor

Godot version

v4.0.alpha2.official [79077e6]

System information

Windows 10

Issue description

Workflow Issues

After creating a SubViewportContainer and a SubViewport and a child control. I cannot see anything, it is all pink and black until I close and reopen the scene? This works in 3.
1.gif
And then once it is visible it is not able to be laid out like a normal control? I need to reparent it to see the layout menu and center it? And then reparent it again to put it back? Perhaps there is a way to show and use the layout menu directly without extra steps? This does not work in 3 either.
2.gif
And then after all that it looks like it is in the wrong position in editor (3/4 off screen) but is in right position when running. This works in 3.

Main Issue
I have a cursor class that draws custom animated cursors. It sets the position with global_position = get_global_mouse_position() but does not seem to work over viewport? This works in 3.
3.gif

Steps to reproduce

  • run the project and notice mouse skip over viewport
  • disable Cursor.tscn in autoload settings and works fine

Minimal reproduction project

https://github.com/rakkarage/GenerateTexture

@Calinou
Copy link
Member

Calinou commented Feb 16, 2022

The first part of this issue is already reported in #55471.

If I understand correctly, the second part of this issue should have been fixed by #57082, which is included in 4.0alpha2. cc @madmiraal

@madmiraal
Copy link
Contributor

@rakkarage When reporting multiple issues, please open multiple issues and ensure that there is only one issue per issue report.

After creating a SubViewportContainer and a SubViewport and a child control. I cannot see anything, it is all pink and black until I close and reopen the scene? This works in 3.

As identified by @Calinou, this is a duplicate of #55471.

And then once it is visible it is not able to be laid out like a normal control? I need to reparent it to see the layout menu and center it? And then reparent it again to put it back? Perhaps there is a way to show and use the layout menu directly without extra steps? This does not work in 3 either.

This is a duplicate of #20619

And then after all that it looks like it is in the wrong position in editor (3/4 off screen) but is in right position when running. This works in 3.

This is a separate issue and should be opened as a separate issue.

I have a cursor class that draws custom animated cursors. It sets the position with global_position = get_global_mouse_position() but does not seem to work over viewport? This works in 3.

This is a duplicate of #30215. It doesn't work in 3.x either.

@akien-mga
Copy link
Member

Closing as duplicate of the aforementioned three issues.

Please open a new issue for this part specifically:

And then after all that it looks like it is in the wrong position in editor (3/4 off screen) but is in right position when running. This works in 3.

This is a separate issue and should be opened as a separate issue.

@Calinou
Copy link
Member

Calinou commented Feb 17, 2022

Superseded by #58247.

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

No branches or pull requests

4 participants