- Home /
Error Script, Not found class GameObject
Hello...
Recently installed Unity on my PC (Windows 10), I have something that I find very odd, is that from one moment to another, open the Monodevelop and I mark error in a simple statement as
public GameObject referencesGO;
It's like GameObject not find the class. Besides not find Camera.main, Vector2 among other classes and do not understand why. Brand error in almost everything.
Thank you very much, I hope someone has the solution to this problem because it does not allow me to program anything.
you'll need to post more of your script to enable anyone to help you. a random line provides no context...
Answer by Bunny83 · Sep 20, 2016 at 01:51 PM
There are two possibilities:
You removed the line
using UnityEngine;
at the top of your scriptYou opened the script file alone inside MonoDevelop. When you open a script inside Unity, Unity will open the solution / project instead of just a single file.
Your answer
Follow this Question
Related Questions
Access a class from Editor script? (Visual Studio) 1 Answer
unity is not found 0 Answers
Reference to another script not working, not throwing any errors 0 Answers
TextAsset / Resources.load return null 4 Answers
Facebook SDK - OpenSSL not found when I installed it and set the path multiple times already 1 Answer