- Home /
Question by
Nightkilla · Mar 27, 2014 at 04:44 PM ·
terrain genxcode 5look atover time
GUIText on IOS is misplaced?
I am making a simple 2D game, and for the logo I added a GUI text. I played it, and it looked fine. Then I exported it, went into Xcode, and tested it on my iPod Touch 5th gen. The logo was way over to the left and down a bit. How did this happen? Do I need to change any settings?
Comment
Answer by Eric5h5 · Mar 27, 2014 at 04:51 PM
GUIText is placed wherever you put it. It uses viewport space for the transform coordinates, so for example (.5, .5) is always the middle of the screen, regardless of resolution.
Umm… so if I put the X and Y to 0.5, it would be the center? I used the pixel offset and set it to 310, 250, and in the unity player it seemed fine but on my iPod it was over to the left. Currently my position is 0, 0.