I can't manage to make viewports work!

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By metus


I am having a real nightmare trying to make viewports work. I am working on a simple 2D game and I am trying to display it in a little window. But it doesnt matter how I configure it, that the viewport is always blank…

I’ve tried doing everything like this tutorial: Godot 3.0: Splitscreen Demo (Using Viewports) · KCC Blog and this video: https://www.youtube.com/watch?v=fl0HFWAwqm0, but cant seem to find the issue anywhere…

I simply create the Container and the Viewport, and put 2D stuff in it but it just wont render. I’ve tried using cameras2D, not using them, changing the viewport usage to 2D…

I’ve created a new empty project to test it out with no success, and I even tried to switch computers! But it all seems worthless, I am really stucked with this

Thanks in advance!

Some days ago I answered something similar
I don’t know what the viewport container is for but in my case you have to specify a size for the viewport children to see it. Do you have a size assigned to the size property of the viewport?

estebanmolca | 2020-01-18 21:59

I do not! That was it, thanks!

metus | 2020-01-18 22:00