Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Detecting player window screen size change?

Asked by
roquick 41
5 years ago

Does anybody know the function that detects when a player resizes their screen?

0
Where is your script? User#19524 175 — 5y
0
my script changes the UIGridLayout sizes based on the players window size. But I use an infinite loop to detect the players window size, but I realized it would be way more efficient if there was a way to detect when a player changes their size so I am wondering if anybody knows roquick 41 — 5y
0
Nevermind, found it myself workspace.CurrentCamera:GetPropertyChangedSignal("ViewportSize"):Connect(function() roquick 41 — 5y

Answer this question