How do I find the center of the screen? I have checked docs, but can’t find anything.
Do you mean the pixel location?
int midX = Screen.width / 2;
int midY = Screen.height / 2;
Fletch
Thanks, thats exactly what I needed
Ok, so I’m trying to convert the screen position in to a GUI position, and I found GUIUtility.GUIToScreenPoint, but it returns the following error:
InvalidOperationException: Operation is not valid due to the current state of
How do I fix this? I have tried various different ways but it doesn’t work no matter what I do.
x-x i feel like a iddiot, the center position would be 0,0 allways. Thanks for the help anyways!