Ok, so I have an issue with Unity on the mac. I made a game that has a button to open a webpage. It is a full screen stand alone app. On windows, the game will minimize and open the browser with the webpage as expected.
The Mac on the other hand completely ignores any command that will make it lose focus. If you’re using Spaces and try going to a different desktop, too bad you’re in the game. If you try to alt+tab (or w/e the apple equivalent is. apple/curly square thing + tab), too bad you’re in the game. how can i stop this? i want to be able to click on the button, have the game lose focus and have the webpage/browser be brought up. when I quit the game (alt+q, or curly square thing + q) the browser and webpage did appear, but the game didn’t let me get to it.
This issue has been reported. There is a workaround that a user suggested in this thread.
(Incidentally, Apple calls the curly square symbol the “pretzel”, but the key is actually referred to as the command key, abbreviated to “cmd” when specifying keystrokes.)
unfortunately, that post is about the webplayer, not the mac standalone. that persons workaround involves the browser letting the webplayer know whether it has focus or not.
in my case, if a mac build of a game is running i can’t cmd+tab to a different application. it seems to me like Unity intercepts messages such as WM_ACTIVE (that’s the windows one, i don’t know the mac equivalent) and doesn’t allow the OS to do what it’s supposed to do.
I wonder why no one else has addressed this. I’ve searched all over and every time someone asks this question it is not answered. Any update on this issue?