Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | 84634E1A607A |
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?
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.
magicalogic | 2023-01-29 04:56