How To Make A Fullscreen Game Windowed Mac

Full screen video being partitioned to one corner (1080p) is possible. As another user has mentioned, Virtual Display Manager does this. As you can see, I have youtube playing in the bottom left corner full screen, another video playing full screen in the top left, and a browser window taking up the remaining right half of the screen.

  1. Steam Games Windowed Mode
MacFullscreen

Comments

Steam Games Windowed Mode

  • Not to be a dick or anything, but I think you might be fighting a losing battle. In this day and age, people using desktop systems expect to be able to use whatever resolution and windowed/fullscreen setting they please, and I personally HATE anything that doesn't deal smoothly with scaling and different aspect ratios.
    I get your point about the pixel perfect look, but I really think you should focus your efforts on finding a technical solution to make it scalable to an acceptable standard instead.
    Sorry, not much of a contribution to your problem - I'll shut up and get back to coding!
  • My main problem is the heavy flickering on WinXP, Mac and Linux which occurs as soon the update function is checking the resolution. On Win7+ platforms the problem is solved, because even in fullscreen mode the original 960x600 resolution is perfectly upscaled. But I want my games to function the same on all platforms. This is the script I'm using.
    Any ideas why the weird update function flickering is happening on those platforms? Thanks!
  • edited August 2015
    Here's a screenshot of what 'can't restrict windows resizing' means on linux:
    (left original resolution, right freely resized window)
  • edited August 2015
    I thought all these options were in the build settings
    enable full screen. display resolution dialogue etc.
    Not sure about resize window tho. althoguh im sure i;ve come across code that disables the window (might have been linux thing)
  • edited August 2015
    In the build/player settings, you can only uncheck 'resizable window', but the fullscreen function (alt+enter, cmd+f) can still be used on win and mac. linux completely ignores 'resizable window'. A 'disable fullscreen' option is completely missing from Unity's 'Standalone Player Options'. Sigh.
  • Do really get screen flickering just checking the screen resolution from Update()???
  • It seems so on WinXP, Mac and Linux. As soon the script containing the update() is disabled, flickering stops.
  • Weird ... I'll be doing some test builds of my own project for Linux this weekend, so will check if I see the same behaviour.
    Will test on Mac if I can get hold of the guy who borrowed my tired old MacBook some time ago - thanks for reminding me to get it back! :-)
  • you're welcome I'm really curious if you'll run into the same issues, and I'd be extremely thankful for every tip on how to fix this issues
  • Just did a quick test on Linux - no flickering.
    Will try extending it to force a specific window size tomorrow - you managed to arouse my interest after all! :-)
  • edited August 2015
    Obviously I couldn't just leave it until tomorrow - why go out and have a few beers and be social on a Friday night when you can stay in and fool around with Unity and Linux??? :-)
    Anyway, forcing it to switch back to the desired window size from Update works fine for me - as long as the window is not maximized, in which case I also experience flickering. Looks like the window manager and Unity are fighting each other for control of the window size.
    But at least it handles the 'freely resized window' example shown in your screenshot gracefully.
    EDIT: Except it does flicker a bit during the actual resizing as you're dragging the edge of the window.
  • Interesting, cool! Would you mind sharing your script after your research is finished?
  • It's actually exceedingly simple:
    if (Screen.height != 600 || Screen.width != 960 || Screen.fullScreen) {
    }

    ... in a script added to an empty GameObject in the scene.
  • edited August 2015
    Also deals with Alt+Enter on Windows, though you might have to Alt+Tab to get the mouse cursor back afterwards.
    It's very unfortunate that Ubuntu's graphical shell is also called Unity when you're googling for a solution for this ... :-/
  • Ahhhh - check this: http://issuetracker.unity3d.com/issues/linux-player-set-to-not-resize-window-is-resizing
    Status: Fixed in Unity 5.2.0

  • Unity 5.2 is out! I will get it asap and try out the linux improvements
  • ;-(
    https://www.reddit.com/r/Unity3D/comments/3k6kv0/unity_52_screensetresolution_problem/
  • Damn ...
    So that should really be: 'Fix attempted in 5.2.0'. ;-)

  • Apart from that, 5.2.0 seems to do light building faster - and native support for Visual Studio is very good news for me. I'm not going to miss MonoDevelop!!!