GetPixelSize||doc136752

September 20, 2022

Format

Window:GetPixelSize()

Describe

This function returns the actual pixel size of the window relative to the screen.

For example, on a 1280 x 720 screen, if framea is the parent window of frameb, and their sizes areUDim2.new(0.5, 0, 0.5, 0), the actual pixel size of framea is (640, 360), because theSizeIs 50% of framea, so the actual pixel size of frameb is (320, 180).

Return value

Type Describe
Vector2 Actual pixel size compared to screen