- Home /
iOS development and GUI for it
I know that the OnGUI function is performance heavy and so on. But the thing i need to know if there is anything i need to change in the editor do have the game in the same aspect ratio. Because of the screen is so small. But in the editor it is so big. Because it is hard to visualise the GUI for the iphone if the unity ediitor dont have the same screen size :p
What do you guys do when you develop the GUI for the game. Do you just test million times on the phone til it fits well or is there a easier way? :p
Answer by nsxdavid · Jul 28, 2013 at 05:47 PM
When you switch your build type to iOS then you can set the Game View to be various iOS-specific aspect ratios from the dropdown menu just under the tab.
Select iOS in the Build Settings dialog and hit Switch Platform and then go look at your Game view. The dropdown probably says "Free Aspect" for you by default, click on it and get a list of others.
BTW, I suggest using NGUI for your iOS UI. It's in the Asset Store.
thanks. I have checked NGUI out. I will get it right after i buy unity pro and IOS pro. So it will be sometime around next month or so :p
Your answer
Follow this Question
Related Questions
Issue with GUI.TextArea keyboard on iPhone 0 Answers
Detecting Input with GUI Textures? 1 Answer
How to pick up object on touch? 1 Answer