|
I'd like the user to be able to resize the game window when playing on a Mac in windowed mode, by dragging the lower right corner of the window. So far the applications I build are insensitive to such a gesture. Is there any piece of code that would take care of that? Help will be much appreciated.
(comments are locked)
|
|
http://answers.unity3d.com/questions/37266/how-i-can-change-the-screen-resolution-in-real-tim.html Enjoy. Now I'm only missing a way to identify the screen resolution has changed, because
Dec 09 '11 at 07:42 PM
Cawas
No need to use currentResolution, just use Screen.width and Screen.height.
Dec 09 '11 at 08:12 PM
Justin Warner
I sure tried both... With no success. :(
Dec 09 '11 at 08:13 PM
Cawas
Try print(Screen.width); What's it say in the log?
Dec 09 '11 at 08:15 PM
Justin Warner
Dec 09 '11 at 08:17 PM
Cawas
(comments are locked)
|

I'm pretty sure that they can choose it at the beginning of the game... So they can choose then, if you want it to do that during game play, I dont think you'll be able to unless you get the source code... Maybe someone else knows.
Yes, at the beginning you can choose from a list of predefined dimensions. But that's not quite the behavior a user would expect of a native window, hence my interest in the resizing using the mouse.
And now with windows 7 and 8 running on tablets, something in this sense becomes essential! Did you happen to find any solution? - related: http://answers.unity3d.com/questions/148593/create-maximize-window-button.html