Jump to content

[SOLVED] get center of current screen


photo

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.

Link to comment
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;

 

Link to comment
  • silent changed the title to [SOLVED] get center of current screen
×
×
  • Create New...