Screen.SetResolution() have no use in unity ios?

hello,i need your help.

I’m working with unity 3.2 ios basic version and i want to set my game runing at a custom screen resolution.

but i found that Screen.SetResolution() didn’t work.

i know in player setting i could set target resolution into 960640 and 480320,

but i still need a custom screen resolution for other purpose.

can anyone help me?

thanks a lot!

Correct, the resolution is either the screen resolution or 480x320 (if you selected SD as target resolution)

you can’t set the resolution as the graphics context is initialized once, on startup, and will remain like that till the end of app

if you want to modify it, modify the EAGLView setup in the AppController but be aware that potentially some inbuilt functionality will no longer work correctly

@dreamora :thank you!

i tried to modify the code.

by now i just made my game running at a custom resolution but not in a full screen…

i don’t know too much about xcode…

It works in Unity 4, sort of. I set it to 80x120, 1/8th of the iPhone 4S tested in this screenshot, and got this result. (Default scene, with a sphere added.) Is there some way to avoid these artifacts when rendering to a lower res than the screen?

Hi Jessy, could you share me where to modifiy in xcode project !!