what is the best way to develop a game that i can easily port to iOS and Android. I started learning unity instead of others because it seems like i can ‘write once, run everywhere’ There is one problem that iphones and Android all have different screen resolution. I will have to test each one on actual device but to make the process easier and to avoid having to re-do the arts later, what is the best practice when targetting multiple resolutions? Any pointers would be appreciated.
I will be using Screen.Width, Screen.Height.
Don’t worry about resolutions. Worry about aspect ratios. Make your game/GUI in such a way that it works with device that has aspect ratio of 4:3 or 16:9.
If you need e.g. dialog backgrounds, use spliced sprites. That way you can change the size of the dialog background to look good with all aspect ratios.