GetPixelPosition||doc136751

September 20, 2022

Format

Window:GetPixelPosition()

Describe

This function returns the actual pixel position of the window on the screen.

For example, on a 1280 x 720 screen, the position isUDim2.new(0.5, 0, 0.5, 0)ofFrameThe actual pixel position of is (640, 360). If another position in the frame isUDim2.new(0, 50, 0, 50)The actual pixel position of the frame is (690, 410).

Return value

Type Describe
Vector2 Actual pixel position on screen