0 votes

I wonder if Control.GetViewport().GetVisibleRect() and Control.GetViewportRect() will always return the same information about the viewport's position.

Another relevant question: is Control.GetViewportRect().Size and Control.GetViewport().Size the same?

Godot version 3.5.1
in Engine by (12 points)

I think GetVisibleRect() will return a rectangle with the visible part of the viewport only such that if you have zoomed in your camera, the size of that rectangle will be smaller than the actual viewport size while with GetViewportRect() that rectangle will always be the same size as your viewport size.

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.