- Home /
Visual Studio Code Mac (1.29.1) problem with class inheritance Unity (2018.2.17f1)
Hey!
Recently I'm encountering a problem every time I'm using a class inheritance. Whenever I make a new script in Unity and make it inherit another class or make the inherited class it throws different types of errors:
The inherited class doesn't exist in that namespace
The inherited class already exists in global namespace (which is not possible, I've checked it several times and with really specific names, also I barely use any plugins at the moment and I've searched for other classes as well)
A static variable cannot be accessed because it doesn't exist in the current context
Unity doesn't show any problems but what is really strange is that if I restart both Unity and Visual Code then the errors disappear. I've tried to only restart Visual Code - since it's faster - but the problem only goes away if I restart Unity as well.
Any ideas what this could be? I saw some other posts but I think mine covers all of them at the same time.
Thanks in advance!
Your answer
Follow this Question
Related Questions
Problem with code writing and maybe inheritance in visual studio! 1 Answer
Input.GetJoystickNames returns empty strings in Unity 5 (mac)? 0 Answers
Mac build not run on other users mac 1 Answer
Must I attach every script to a gameobject in order to work ? 2 Answers
Collider with rigidbody does not register collision with terrain 2 Answers