3d platform tutorial StartMenuScript

hello. I am working on the 3d platform tutorial. I am trying to create my start menu script from the tutorials instructions, however when i add the script to the start menu scene’s camera, there is no option to add my GSkin or backdrop images. where have i gone wrong? thank you.

var gSkin : GUISkin;
// our backdrop image goes in here.
var backdrop : Texture2D;	

private var isLoading = false; // if true, we'll display the "Loading..." message.

function OnGUI()
{
	if (gSkin);
		GUI.skin = gSkin;
	else
		Debug.Log("StartMenuGUI: GUI Skin object missing!");
	
	var backgroundStyle : GUIStyle = new GUIStyle();
	backgroundStyle.normal.background = backdrop;
	GUI.Label ( Rect((Screen.width - (Screen.height * 2)) * 0.75, 0, Screen.height * 2, Screen.height * 2, Screen.height), "",backgroundStyle);
	GUI.Label ( Rect((Screen.width/2)-197, 50, 400, 100), "Lerpz Escapes", "mainMenuTitle");
	
	if (GUI.Button( Rect((Screen.width/2)-70, Screen.height -160, 140, 70), "Play"))
	{
		isLoading = ture;
		Application.LoadLevel("TheGame");  // load the game level.
	}
	
	var isWebPlayer = (Application.platform == RuntimePlatform.OSXWebPlayer || Application.platform == RuntimePlatform.WindowsWebPlayer);
	if (!isWebPlayer)
	{
		if (GUI.Button( Rect((Screen.width/2)-70, Screen.height - 80, 140, 70), "Quit")) Application.Quit();
	}
	
	if (isLoading)
		GUI.Label (Rect((Screen.width/2)-110, (Screen.height / 2) -60, 400, 70), "Loading...", "mainMenuTitle");
	
}

// Make the script also execute in edit mode
@script ExecuteInEditMode();

Well, I can’t get anything but a blue screen, but I can help you with that piece.

With the StartMenu scene active in Unity, you should be able to select Main Camera in the Hierarchy pane and see those two objects listed in the inspector under the Start Menu GUI (Script) dropdown.

The code i pasted was full of errors. i fixed it though.

and it works correctly now.

var guiSkin: GUISkin;
// our backdrop image goes in here.
var backdrop: Texture2D;	

private var isLoading = false; // if true, we'll display the "Loading..." message.

function OnGUI ()
{
	if (guiSkin)
		GUI.skin = guiSkin;
	else
		Debug.Log("StartMenuGUI: GUI Skin object missing!");
	
	var backgroundStyle : GUIStyle = new GUIStyle();
	backgroundStyle.normal.background = backdrop;
	GUI.Label ( Rect((Screen.width - (Screen.height * 2)) * 0.75, 0, Screen.height * 2, Screen.height), "",backgroundStyle);
	GUI.Label ( Rect((Screen.width/2)-197, 50, 400, 100), "Lerpz Escapes", "mainMenuTitle");
	
	if (GUI.Button( Rect((Screen.width/2)-70, Screen.height -160, 140, 70), "Play"))
	{
		isLoading = true;
		Application.LoadLevel("TheGame");  // load the game level.
	}
	
	var isWebPlayer = (Application.platform == RuntimePlatform.OSXWebPlayer || Application.platform == RuntimePlatform.WindowsWebPlayer);
	if (!isWebPlayer)
	{
		if (GUI.Button( Rect((Screen.width/2)-70, Screen.height - 80, 140, 70), "Quit")) Application.Quit();
	}
	
	if (isLoading)
		GUI.Label (Rect((Screen.width/2)-110, (Screen.height / 2) -60, 400, 70), "Loading...", "mainMenuTitle");
	
}

// Make the script also execute in edit mode
@script ExecuteInEditMode();