|
Is it possible to lock a game at a set resolution and prevent the user from resizing the window or switching fullscreen? Fullscreen wouldn't be a problem except that if you switch to fullscreen and back, Mac OS X retains the monitor's native resolution in the new window size regardless of its size prior to fullscreen. Another solution might be to allow fullscreen, but return the window to the preferred size on minimizingthis would require an Much help would be appreciated!
(comments are locked)
|
|
example:
edit:If you're building for the web player you can disable the right click menu so people can't go fullscreen to begin with. To get to the setting go to File > Build Settings, then choose Player Settings and select No Context Menu for the Web Player Template.
Excellent, I wondered if it could be used that way. Thank you!
Dec 02 '10 at 05:49 AM
gmerriment
Ideally, it would be better if I could completely disable fullscreen and resolution changes, but this serves as a workable substitute.
Dec 02 '10 at 06:12 AM
gmerriment
well you could test for fullscreen every frame and set it to false if if ever goes fullscreen :D or if you're using a web player there is a setting to hide the context (right click) menu so there is no option to go fullscreen.
Dec 02 '10 at 06:38 AM
Rennat
That's what I ended up doingit does prevent fullscreen, but there is an unfortunate momentary "blink". And it is counter-intuitive: having the option implies that the user can do it, and preventing its execution is more frustrating than not giving the user the option. Maybe an item for the Unity wish list...
Dec 03 '10 at 04:31 AM
gmerriment
(comments are locked)
|
