How to calc view area ?

Hi, sorry for my bad english.

I have a simple map and camera.


How to calculate an area of map in view port ?

I want build frame on minimap like this:



Hi Shude -

Not knowing how big a world you want to use, you can use the Get Viewport Size node in your Blueprint to get the integer values for the X and Y Max Values. You could then do some math based on the total size of your level versus what is currently shown in the viewport to the draw an image of the rectangle based on the viewport dimensions scaled to work with your minimap.

Thanks for your answer, but I don’t know what is math operations i must do to get this rectangle. this is my question.