Hi guys
So we made a web player for a project, the resolution is 900 x 400 and i made a button in the web player so the user can toggle to full screen mode.
I used this piece of code to switch to full screen.
public class example : MonoBehaviour {
void Example() {
Screen.fullScreen = !Screen.fullScreen;
}
}
I tested it on a bunch of different computers and it works fine.
But i have found that there where some computers that crashed when i pressed to full screen button and i got this fatal error message -
- couldn't switch to requested monitor resolution -'
Now i have looked on the web and on the unity forums for a solution but can't find anything.
Now i was hoping anyone here had a similar problem and knows why the web player crashes.
Or can point me in the right direction to fix it.
thanks
↧