Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Sudden error message when accessing a different script.

$
0
0
Everything worked well and suddenly I get an error message in lines like this one in all my scripts when referencing the script () battleScreen = gameController.GetComponent().battleScreen; The message is "The type or namespace name 'GameController' could not be found...". The script is still in my scripts folder and it is still attached to the gameController gameObject. I was in the middle of adding a new method to that script when I noticed the error message. I commented out the method so the script was as before. I have no idea even where to look to see what it was that I did wrong that I am getting this message all of the sudden. I reference plenty of other scripts but this is the only one with a problem. Visual Studio also gives me a message: "GameController is not a Unity Component". Anybody?

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>