Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

VSC Code giving error even though there is no issue

Discussion in 'Code Editors & IDEs' started by snackycactus, Nov 12, 2018.

  1. snackycactus

    snackycactus

    Joined:
    Aug 15, 2013
    Posts:
    27
    Does anyone know how to fix this?
    I'm on a mac, and the new version of Unity stopped supporting MonoDevelop, so I was forced to move to VSC or VSC Code. I hate VSC so Code is my go-to. Sadly, I'm running into this problem where any references to other classes show this error below. It's super annoying!
    upload_2018-11-12_11-17-26.png

    What's even stranger is that it'll still sometimes recognize functions within the references it's say it can't find:
    upload_2018-11-12_11-16-41.png

    Does anyone have any idea how to fix this!!!?
     

    Attached Files:

  2. Deleted User

    Deleted User

    Guest

    Did you try
    Code (CSharp):
    1. public Class CaveChicken : Enemy
    instead of
    Code (CSharp):
    1. public Class CaveChicken: Enemy