Full Screen Mode

how do you switch out of full screen and to full screen fast? Like keyboard shortcut?

What you want is something like:

Edit

Since you didn’t tell us what language you want to use, here’s the Javascript version of the full script:

function Update()
{
    if (Input.GetKeyDown(KeyCode.F))
        Screen.fullScreen = !Screen.fullScreen;
}

And here's the C# version (in c# the file must have the same name as the class: "ToggleFullscreen"):

using UnityEngine;
using System.Collections;

public class ToggleFullscreen : MonoBehaviour
{
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.F))
            Screen.fullScreen = !Screen.fullScreen;
    }
}

Scripts have to be attached to a GameObject in your game. For this script it doesn't matter on which object. Just drag it from your project view onto the gameobject you like (eg. MainCamera).

public class FullScreen : MonoBehaviour {
private int defWidth;
private int defHeight;
public void Awake()
{
defWidth = Screen.width;
defHeight = Screen.height;
if(!Application.isWebPlayer)
{
Destroy(this);
}
}
public void ChangeFullScreen()
{
if (!Screen.fullScreen)
{
Screen.SetResolution(Screen.currentResolution.width, Screen.currentResolution.height, true);
}
else
{
Screen.SetResolution(defWidth, defHeight, false);
}
}
}

Well, by default the button to go out of fullscreen is esc. And what do you mean, make unity fullscreen, make your scene fullscreen, make 'an' unitygame fullscreen?

Joshua, thanks for that solution, but I meant you can pretty much switch to fullscreen by right clicking then clicking full screen.

Use ALT-Enter

Bunny83, I didn't understand how to do this: create a script file and how to use it on a GameObject?