Calculate On Screen Width

  • Exposure: public
  • UE Version: 5.0

avatar author


May 16, 2022, 9:06 am

Function for calculating the screen width in centimeters. Basically the size of an object that would fill the width of the screen at a specified distance. Useful for doing other camera calculations like Dolly Zooms.

ScreenWidth = Distance × Tan( FOV / 2 ) × 2

Click the button above, it will automatically copy blueprint in your clipboard. Then in Unreal Engine blueprint editor, paste it with ctrl + v