photo

[SOLVED] get center of current screen

Recommended Posts

Hey guys i want my interface to scale with the screen that is currently displaying but i don't know how to get the current screen properties in-game

thanks in advance.

Share this post


Link to post
26 minutes ago, Kireita said:

Hey guys i want my interface to scale with the screen that is currently displaying but i don't know how to get the current screen properties in-game

thanks in advance.

i found it

Gui gui = Gui.Get();
screenWidth = gui.Width / 2;
screenHeight =  gui.Height / 2;

 

Share this post


Link to post