Hi, I was playing Fusion Fall and I noticed that they have a button for the Fullscreen as opposed to the right click and then click on fullscreen. Is it possible to do this for Unity Indie?
Thanks in advance.
Hi, I was playing Fusion Fall and I noticed that they have a button for the Fullscreen as opposed to the right click and then click on fullscreen. Is it possible to do this for Unity Indie?
Thanks in advance.
Sure… Try something like:
If (GUI.Button (Rect (10,10,100,20), "fullscreen"))
Screen.fullscreen = true;
Thanks Now, can I disable the right click menu?
Set the disableContextMenu HTML parameter. More info here: http://unity3d.com/support/documentation/Manual/WebPlayerBehaviorTags.html
Many thanks
If (GUI.Button (Rect (10,10,100,20), “fullscreen”))
Screen.fullScreen = !Screen.fullScreen;