x


Before updating to Windows 10 you may need to return your Pro license. More information here

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

avatar image

fouadhabr
2 1 2 3

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

0 answers: 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

avatar image

alucardj
31.2k 172 1072 243

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

This Script doesn't work with unity 5

Apr 03 at 08:11 AM tyranpro557

This will happen with a lot of resources you find now. All I can suggest is read the Unity5 Upgrade guide : http://docs.unity3d.com/Manual/UpgradeGuide5.html

Apr 03 at 08:13 AM alucardj
(comments are locked)
10|3000 characters needed characters left
Be the first one to answer this question
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:

asked: Jun 23, 2012 at 05:28 PM

Seen: 6504 times

Last Updated: Apr 03 at 08:13 AM