ok so what i want to make is a button wich makes toogles fullscreen mode if it is pressed.
i have tried allready but it isnt working ![]()
this is what i have so far:
var fullscreen = false;
function OnGui ()
{
if (GUI.Button (Rect(10,10,100,20),"fullscreen"))
{
fullscreen = true;
}
}
function update ()
{
if (fullscreen)
{
Screen.fullScreen = Screen.fullScreen;
}
}