Godot: Sub Viewports don't render anything

Created on 27 Jul 2017  路  5Comments  路  Source: godotengine/godot

Operating system or device - Godot version:
Windows 7 64bit - Godot 3.0 alpha1

Issue description:

Sub Viewports don't render anything.

Steps to reproduce:
-Create new project
-Add Control node and resize it so its visible in the game
-Add Viewport node to the Control node
-Add Something to the Viewport node, e.g. a Button
-Launch the game. The Button should be visible, but isn't.

bug rendering

Most helpful comment

It might be a good idea to update the documentation then. 馃
https://godot.readthedocs.io/en/latest/tutorials/viewports/viewports.html#sub-viewport

All 5 comments

oh, you need to use ViewportContainer, putting a viewport in a control is no longer supported.

Why do the viewports (without container) exist than? if they don't work alone. isn't that bad ux?
would it be possible to just remove vieport container and the viewport does everything the container handled before ?

@toger5 You can use them as standalone render targets, without rendering them to the screen.

@bojidar-bg that makes sense! Ty

It might be a good idea to update the documentation then. 馃
https://godot.readthedocs.io/en/latest/tutorials/viewports/viewports.html#sub-viewport

Was this page helpful?
0 / 5 - 0 ratings