Make an Ingame Menu

Is there a way to make a simple gui, ingame menu. That also pauses the game except for the menu.
This is what I have so far.

function Update () 
{    
   if(Input.GetButtonDown("Enter")) 
   { 
      print("Make a Menu"); 
   } 
}

You need to use the GUI or GUILayout functions to create a menu. You might find it easiest to use a set of buttons (created with GUI.Button or a selection grid depending on what type of menu you want.

You can pause gameplay by setting the value of Time.timeScale to zero. You can resume afterwards by setting the value back to one.

There are two ways to make GUI’s that i know of (im not overly experienced in GUI’s so their are probably more.) The one andeeee said or to use GUITextures. This meaning you make a picture for each button, but i find it worth it in the greater amount of combustibility though i am sure i could customize GUILayouts to do what i want but they make things a little more complicated. Now to make a GUITexture menu, what you want to do is have multiple textures (mouse over, normal, and click usually). Then have it so when you mouse over, change texture to the mouse over one, then when exit switch back to normal, and on mouse down switch to click, and mouse up switch to hover. Now the code is simple:

var buttonNormal : GUITexture;
var buttonHover : GUITexture;
var buttonClick : GUITexture;

function OnMouseEnter () {
guiTexture.texture = buttonHover;
}

function OnMouseExit () {
guiTexture.texture = buttonNormal;
}

function OnMouseDown () {
guiTexture.texture = buttonClick;
}

function OnMouseUp () {
//What You want the button to do.
//Alternatively make this function a different script
//so it is universal. 
}

Also, you should make the default texture the normal button. Also this is just the way I do it personally, i am sure there are better ways, so i would get other peoples opinions first. I also typed this code while not on my computer, so i can’t check if it is in the correct syntax, but the idea is the same.

Here’s a sample pause menu script, using the GUI system

There are three general approaches I know of to creating a GUI in Unity - using the GUI system, using GUITexture/GUIText objects, and using 3D objects with OnMouse callbacks (or your own raycasting). I summarized them very briefly here:

http://www.technicat.com/games/unity.html#GUI

I just started looking at EZGUI, which looks really nice:

http://www.anbsoft.com/middleware/ezgui/

Hey men if you wanna work in a sci-fi game
contact me at rudasvicen8@hotmail.com
it wont be paid at the moment but you
will get money of the earnings
what do yo say? wanna team up?