0 votes

Hi!

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: http://kidscancode.org/blog/2018/07/godot3_splitscreen/ 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!

Estructure example

in Engine by (18 points)

Some days ago I answered something similar
https://godotengine.org/qa/57751/viewports-display-nothing-as-im-using-them
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?

I do not! That was it, thanks!

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.