PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
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