Running a Unity app and choosing what mode it starts in

If I modify the preferences .plist file (osx) for a Unity app and, say, modify the screen resolution for windowed mode, and it’s set to start in windowed mode, and I have the resolution dialog disabled, would this allow manual switching of what mode the app starts up in?

I’m thinking to launch a Unity app from another app but I need the Unity app to sometimes start in a windowed mode at a specific size (to display some configuration gui stuff) and at other times start in full screen mode… and I need my other app to be able to tell it to do this pretty easily. I thought there might be a command line option to override the setting temporarily but I guess not?

Anyone?

I ideally don’t want to have to have 2 separate Unity apps just to launch one in a window and one in fullscreen.

You have :

static var fullScreen : bool

and :

static function SetResolution (width : int, height : int, fullscreen : bool, preferredRefreshRate : int = 0) : void

With these, you can detect whether an application is running at full screen, and you can adjust the resolution, and whether the application must run fullscreen or not (it seems).

Is it what you wanted, or am I mistaken ?

It sounds good but I don’t want it to go into fullscreen and THEN switch to windowed, or vice versa, I need it to initially open in the appropriate mode, so there really can’t be any scripts running.