i've trying to accomplish this.. i think its not `Screen.width/2 - 300`
i try to find the math but i comes up with this to make it center of the screen..
new Rect(Screen.width-(Screen.width-300))/2 , Screen.height-(Screen.height-300))/2 , 600,600);
this should makes the box which is 600x600 placed on the center of the screen.
CMIIW..
↧