|
Such as in Portal 2, the VALVe game, where it makes itself fullscreen and works on all computers, huge and small. Do i make or I think the second one works, but does it make the game run in a fullscreen mode without running offscreen on all computers?
(comments are locked)
|
|
The first example you give will switch to full screen. But, what you really want to do is look at the resolutions supported on the machine and choose the largest one, so see http://unity3d.com/support/documentation/ScriptReference/Screen-resolutions.html. The resolutions appear in the area from smallest to largest. ok, so instead of what they have, I'd say resolutions[resolutions.Length].width, etc?
Jul 09 '11 at 10:29 PM
Jesus_Freak
The last index of a zero-based array is always [whatever.Length - 1].
Jul 09 '11 at 10:47 PM
Dreamblur
ok, and since I'm using c# generic List, it'd be [whatever.Count -1]?
Jul 09 '11 at 11:21 PM
Jesus_Freak
(comments are locked)
|
