When building standalone osx game. If click the attached screen’s button to enter full screen mode. The unity player will no longer able to exit full screen mode.
If press cmd+F, to enter or exit full screen mode, is no problem. But if click the green button. It will go crazy.
Cannot back the window mode anymore.
What exactly does “go crazy” mean here? When you mouse up to the top of the screen, causing the menu and title bar to appear, and click the zoom (green) button again, what happens?
No, after click the (green) button, the title bar will disappear. But, it simply no longer display again. That why it unable to go back.
When using cmd+f or Screen.Fullscreen by code, it will not cause the title bar disappear.
But if by click the green button, it like destroy the title bar.
I think it should be BUG.
No, the title bar (and menu bar) disappearing is what’s the green button does on recent versions of MacOS. Try it with any app — web browser, text editor, whatever. They all do it.
Menu bar and title bar reappear when you push the mouse up to the top of the screen, and then clicking the zoom button again exits full-screen mode.
(Not that I like this behavior; I now always option-click the zoom button to get the old, non-full-screen zoom behavior instead. But maybe that’s just me.)
I know what normal app behavior. The title bar should not be destroy. But Unity generated app has bug, it work not like normal app.
Basically I don’t care this bug, but Apple reviewer reject my app because of this bug!
I need to set “Resizable Window” to False to disable the “Green” Button. And than Apple approve my app.
I had the same problem what I did to fix it when you are in build settings go to project settings then player then resolution and presentation and change the full-screen mode options.