Search Unity

Visual Basic Error Help

Discussion in 'Scripting' started by Mortalanimal, Oct 16, 2019.

  1. Mortalanimal

    Mortalanimal

    Joined:
    Jun 7, 2014
    Posts:
    568
    No idea what Happen, I was Just adding "//" notes to my script and this popped up. and now my script doesnt work properly!

     
  2. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,775
    This isn't a thread for Visual Basic help, and even if it were, we' would have needed to see the code you were editing to even hope to help you.
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
    From the namespace 'Microsoft.CodeAnalysis,' it looks like another bug in Visual Studio.

    That said, if your script was working and stopped working, then you must have introduced a bug somewhere. What Visual Studio thinks of your code is actually irrelevant, since it is Unity that ultimately compiles it for running.

    Try selecting any script in your project and right-click-reimport that script, then see if there are any errors in the Unity console window. That's what actually counts.
     
  4. Mortalanimal

    Mortalanimal

    Joined:
    Jun 7, 2014
    Posts:
    568
    thx, I couldnt even save it :(

    wasted so much time :((
     
  5. Mortalanimal

    Mortalanimal

    Joined:
    Jun 7, 2014
    Posts:
    568
    @StarManta, I meant Visual studios btw lol

    anyway I re-Made my script, was good practice I guess :D