Screen Resolution

Hello

I want the standalone to run at 400w x 600h but even when these values are typed into the Player Settings, the compiled game runs at 1024x768.

Actually it would be great if the game window could be resizable, the same way the Game View works on Unity.

Is this possible?

Thanks,
Andres

Well, I think the start up options menu will over-ride those settings.

Is the default game res setting of your options window set to 1024x768? (if you can’t see it when you start your game, hold the option key during startup)

If that still doesn’t work, you could try setting that res yourself from scripts in an Awake().

I don’t know if that res is supported by Unity for sure though.

-Jeremy

The standalone can only run resolutions that the OS supports, but you can define arbitrary resolutions on your machine with utilities like DisplayConfigX. If there was a windowed-only mode, it would make sense to support windows of any size (like you can do with the web player), but since resolutions can be both windowed and full-screen, that’s not possible. (Something for the wish list, maybe?) It’s also not possible to have a resizable window.

–Eric

Hello

I don’t want the game to run in fullscreen just windowed mode.

Andres

Use “Screen.SetResolution (400, 600, false);” in a script. The only thing is, if the user manually switches to fullscreen, it will pick the nearest available resolution, which would probably be 640x480, and this resolution will stick if you switch back to windowed mode. I thought there was a way to disable fullscreen, but I can’t find it at the moment.

–Eric

Hello Eric

I tried the same standalone in a less resolution computer and curiously the game window is 400x600.

Isn’t it weird?

Andres

Actually, that’s because using a different computer means you didn’t already have a preferences file for the standalone on that computer. See this topic for more detail.

In short, if you want to be sure, then you’d have to use scripting like I mentioned.

–Eric

Thanks Eric

It worked !!!

Andres

Hello Eric

Now I need to know how to disable the fullscreen mode. Any suggestion on where to look?

Regards,
Andres[/quote]

I was probably thinking of the web player…not sure if/how it’s done for a stand-alone.

–Eric

You could use Apple Interface Builder on the standalone and then just delete the thing that allows players to choose fullscreen.

The problem is that you can just do Apple-F at any time to toggle fullscreen. Otherwise it would be easier to disable the requester altogether in Unity, which I assume Andres is doing since the game is supposed to run at a fixed resolution of 400x600.

–Eric