Originally Posted by justinbarrett
I am simply trying to get the screen size in X to pass on to my exp bar background for dynamic ui scaling, but cannot seem to find it(the way to return screen size) anywhere...
can anyone help?
I did look on the wiki but saw no clear answer...and the wiki is not the easiest to navigate if you are new to this kind of coding.
|
Try:
Lua Code:
GuiRoot:GetWidth() -- for the width
GuiRoot:GetHeight() -- for the height