PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

ViewportSize

Camera

Vector2

ViewportSize describes the dimensions, in pixels, of the client’s viewport.

A visual demonstration of the ViewportSize

  • This property ignores the GUI inset applied by the top bar, meaning the center of the screen can be found at precisely at 50% of the ViewportSize in both directions
  • You can find the position of a DataType/Vector3 in the world on the viewport using Camera/WorldToViewportPoint