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 object not rendered in 2D editor viewport of they are chidren of a SubViewport #73274

Closed
blackears opened this issue Feb 14, 2023 · 2 comments
Labels

Comments

@blackears
Copy link

Godot version

v4.0.rc1.official [8843d9a]

System information

Windows 10, Compatability

Issue description

Nothing is rendered in the Godot editor if you are editing a 2D scene that is a child of a SubViewport node.

Steps to reproduce

Create a new scene with a Node3D root node.
Add a Node2D as a child.
Click on the Node2D. Godot will switch to 2D view.
Add a Polygon2D as a child of the Node2D. Draw a polygon. You will see the results in the viewport.
Add a SubViewport node as a child of the Node3D
Drag the Node2D so that it is a child of the SubViewport.
Click on the Node2D again. Now nothing is rendered in the viewport.

Minimal reproduction project

2dIn3D.zip

@Sauermann
Copy link
Contributor

Please have a look at #50185

@KoBeWi
Copy link
Member

KoBeWi commented Mar 1, 2023

SubViewports do not display anything on their own, you need SubViewportContainer or ViewportTexture.
Also duplicate of #20619

@KoBeWi KoBeWi closed this as not planned Won't fix, can't repro, duplicate, stale Mar 1, 2023
@KoBeWi KoBeWi added the archived label Mar 1, 2023
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