make screen resleution control inside game ui

as you see i want make a game full screen regradless of unitys first dialog box. oi want a menu that have a leveler for set screen reseleution.any 1 can help plz

1 Answer

1

You can do that using the Screen class: http://unity3d.com/support/documentation/ScriptReference/Screen.html

Example (Javascript):

Screen.SetResolution (640, 480, true, 60); // Switch to 640 x 480 fullscreen at 60 hz