Why isn't my script inheriting from MonoBehaviour
I've opened up my script in visual studio 2015, but I've noticed that none of the classes or variables are appropriately highlighted. I'm not sure whether this is a bug, or more likely something I've done wrong.
The only classes that seem to work are from the System.Collections namespace. The classes in UnityEngine namespace won't even show up in intellisense. I've also made sure the class name is exactly the same as the script name.
Here is an image of visual studio:
have you imported Visual Tools for Unity ?
Yes, the visual tool package came with unity when I installed it.
Your answer
![](https://koobas.hobune.stream/wayback/20220612063626im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Can't Add Script "The script needs to derive from MonoBehaviour!" 1 Answer
My Monobehaviour Script doesn't get detected 0 Answers
Why does unity not see monobehaviour? 2 Answers
Why does unity not see monobehaviour? 1 Answer
Should I inherit from Monobehaviour if the use of my C# script is only to hold script references? 2 Answers