This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+1 vote

Hi !
simple question... what is a viewport? I see this in many tutorials but cant manage to understand it. I checked the documentation, but I dont manage... what is a "different view of the scene" means?

Thanks a lot !!

in Engine by (47 points)

1 Answer

+2 votes

Imagine you are a painter, and you are drawing a picture onto your canvas. That canvas would be your Godot viewport.

Now imagine that you are drawing another picture onto a separate canvas. This second canvas is completely independent of the first canvas. This would be another viewport.

You could have a third, a fourth, or a fifth canvas (and more if you so chose). At its heart, that's all a viewport is: a canvas upon which you can paint a picture. In computing terms, you can think of it as a window. You can show multiple viewports/windows on the same monitor/screen, or you can show different viewports/windows on different monitors/screens.

by (595 points)

Ok good I think I get it ! So it's like a scene but with multiple elements of the game, not only an object?

If I understand you correctly, then yes.

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.