Please help with insert a semicolon at the end!
Hey everyone. I recently had this compiler error:
UCE0001: ';' expected. Insert a semicolon at the end.
After doing some research, I realized that the problem was not necessarily in the semicolon, but in the script itself. I went over it for a while, but couldn't find any possible erros. Here's the script:
 using UnityEngine.SceneManagement;
 
 function OnGUI ()
 {
     if(GUI.Button (Rect (500, 100, 100, 50), "Play"))
     {
         SceneManager.LoadScene(1);
     }
 }
Does anyone see anything I'm missing?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Hellium · Mar 23, 2016 at 10:41 AM
Try changing "using UnityEngine.SceneManagement" by "import UnityEngine.SceneManagement"
using is the C# syntax while import is used in UnityScript 
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                