Search Unity

VS Code MAC type or namespace could not be found, but compiles

Discussion in 'Documentation' started by Clemensxo, Jan 10, 2017.

  1. Clemensxo

    Clemensxo

    Joined:
    Jan 10, 2017
    Posts:
    3
    Hi Guys,

    i am using VS Code with my MAC. I installed
    C# for VS Code (1.6.2)
    Debugger for Unity (1.0.4)
    Unity Tools from Tobiah Zariez (0.1.9)

    My Code is running well, what bugs me are hundreds of errors "The type or namespace name 'xxx' could not be found...." - marked red in the screenshot below.
    Bildschirmfoto 2017-01-10 um 19.26.37.png
    How can i fix that? Thank in advance.
    Clemens
     
  2. Graham-Dunnett

    Graham-Dunnett

    Administrator

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Hi Clemensxo - your post would normally be more suited for the Editor and General Support forum. I am not, actually, a VS user, but looked up some useful links:

    a) https://docs.unity3d.com/560/Documentation/Manual/VisualStudioIntegration.html
    b) https://blogs.msdn.microsoft.com/vi...ty-5-2-and-visual-studio-tools-for-unity-2-1/
    c) https://www.microsoft.com/en-gb/dev...n15/coding-for-unity-with-visual-studio-code/

    Don't know if you have downloaded and installed the things described in these links. Not sure if they are still up to date etc, but think these doc links will be helpful (or interesting).

    HTH
     
  3. Clemensxo

    Clemensxo

    Joined:
    Jan 10, 2017
    Posts:
    3
    Hi Graham,

    thank you for the links, i will check them.
    And next time i will use the Editor forum. :)

    Update: that did not help, esp. as i am using a MAC

    Kind regards,
    Clemens
     
    Last edited: Jan 13, 2017
  4. florinel2102

    florinel2102

    Joined:
    May 21, 2019
    Posts:
    76
    For me work to restart unity .