title: Mouse click object unity 5.3 UI?
body: <p>I'm currently working on a project that is due Monday for school. I've been working on it for a while, but when it comes to coding I always unable to solve any errors since I'm practically a beginner. How should I format my code so every time I click an object GUI appears? I'm currently using Unity version 5.3.</p>
  
  <p>Code:</p>
  
  <pre><code>#pragma strict
  
   var scanners : UIText //variable for GUI text
  
   function Start () //scanner not clicked
  
   {
       scanners.enabled=false;
  }
  
   function OnMouseDown() //scanner clicked
  
   {
       scanners.enabled=true;
  }
  
   function OnMouseUp() //scanner unclicked
  
   {
  
       scanners.enabled=false;
  }
  </code></pre>