- Home /
Crosshairs Gui don't stay the same how to fix???
When I maximize my game the crosshairs don't move to the middle of the screen like they were before the game was maximized, they just stay over in the corner, how do I fix this?
Comment
Best Answer
Answer by e-bonneville · Feb 12, 2011 at 07:51 PM
Put your center-finding script in Update, like this:
var button = Rect (0,0,20,10);
function Update() { var center = Rect(Screen.width/2 - button.width/2, Screen.height/2 - button.height/2, button.width, button.height); }
Your answer
Follow this Question
Related Questions
Score counter out of control, help needed. 1 Answer
Game Object enable for game mode selection on GUI 1 Answer
Question about fliping a character 1 Answer
Move cursor/crosshair based on keyboard input 1 Answer
GUI Scale Problem 1 Answer