x


Hover Script

Hey guys, i saw a tutorial on youtube, that helps making a 3d menu. The guy used a script called hover script, but when i download it an error message displays that the host is unidentified, can anyone help?

this is the link for the script http://www.mediafire.com/?dbdijpj5dhvn3wi

more ▼

asked Jun 23, 2012 at 05:28 PM

fouadhabr gravatar image

fouadhabr
2 1 2 2

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

1 answer: sort voted first

This is not really a problem you're having with Unity. And a link to the tutorial would help understand exactly what the problem is. Anyway, I had no problem downloading the script in your link, here it is :

var levelToLoad : String;
var soundhover : AudioClip;
var beep : AudioClip;
var QuitButton : boolean = false;

function OnMouseEnter(){
    audio.PlayOneShot(soundhover);
}

function OnMouseUp(){
    audio.PlayOneShot(beep);
    yield new WaitForSeconds(0.35);
    if(QuitButton){
        Application.Quit();
    }
    else{
        Application.LoadLevel(levelToLoad);
    }
}

@script RequireComponent(AudioSource)
more ▼

answered Jun 24, 2012 at 04:05 AM

alucardj gravatar image

alucardj
29.3k 166 1038 198

this actually bugged me. I was drawn to the word 'Hover', and find no reference to hovering, rather GUI and an issue with a (not) broken link. Looks like it makes a sound on mouseover and loads levels set by a string.

Jun 24, 2012 at 04:15 AM alucardj
(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:

x9069

asked: Jun 23, 2012 at 05:28 PM

Seen: 5405 times

Last Updated: Jun 24, 2012 at 04:15 AM