- Home /
Scene problem - missing Unityengine and MonoBehaviour
Hello, i recently started making fps and when i tried to make .cs backup in case i fricked up those 3 errors showed up, even tho i deleted .cs backup 1. A meta data file (.meta) exists but its asset 'Assets/FPS/Scenes/Scripts/menuStart.cs' can't be found. When moving or deleting files outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it. (When i check this place, .cs file is still there) 2. Assets\FPS\Scenes\Scripts\menuStart.cs(1,7): error CS0246: The type or namespace name 'Unityengine' could not be found (are you missing a using directive or an assembly reference?) 3. Assets\FPS\Scenes\Scripts\menuStart.cs(4,27): error CS0246: The type or namespace name 'MonoBehaviour' could not be found (are you missing a using directive or an assembly reference?)
Im a total newbie and i don't know much coding, i just copy scripts from internet. Frick, i just wanted to make scene change button Here's my code: using Unityengine; using System.Collections;
public class menuScript : MonoBehaviour { public void ChangeScene(string sceneName) { Application.LoadLevel(scenceName); } }
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Custom 'wipe' Transition between scenes 1 Answer
Player Sprite Changing Scenes And getting a new camera to follow it and default spawn position 1 Answer
How can i use a button key click to switch/toggle between enum options ? 1 Answer