x


how to make a main menu?

could somebody give me a guide in how make a simple 3d menu?

more ▼

asked Dec 08 '10 at 09:26 AM

nini gravatar image

nini
37 10 13 14

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

renderer.material.color = Color.black; var isQuitButton = false; var isPlay = false; var isLoad = false;

function OnMouseEnter() {

//Change the color of the text

renderer.material.color = Color.green;

//PlayAudio
GetComponent(AudioSource).enabled = true;

}

function OnMouseExit() {

//Change the color of the text back

renderer.material.color = Color.black;

//KillAudio
GetComponent(AudioSource).enabled = false;

}

function OnMouseUp() {
if( isQuitButton ) {

    //quit the game
    Application.Quit();

}
else
    if( isPlay )
{

    //load level
    Application.LoadLevel(1);

}
        if( isLoad )
{

    //load level
    Application.LoadLevel(0);

}

}

heres the script i use for exactly that'... attach to a 3dtext or whatever just make sure it has a box collider on it

more ▼

answered Dec 25 '10 at 11:51 AM

Mike Ledwards gravatar image

Mike Ledwards
212 26 29 38

(comments are locked)
10|3000 characters needed characters left

Check out this video tutorial

Hope this helps!

more ▼

answered Dec 08 '10 at 10:08 AM

Sriram gravatar image

Sriram
213 9 10 19

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x386
x34

asked: Dec 08 '10 at 09:26 AM

Seen: 883 times

Last Updated: Dec 08 '10 at 09:26 AM