Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question all scripts stopped working

Discussion in 'Scripting' started by x267Unity, May 11, 2024.

  1. x267Unity

    x267Unity

    Joined:
    May 5, 2024
    Posts:
    5
    Before that, I worked with one script that for some reason stopped working under the pretext of an error in the name or the absence of MonoBehavior in it. I thought it was a bug and restarted unity. Now this problem is with all scripts. None of them are active and all have the error "No MonoBehasvior scripts in the file". I think there is a mistake in my work with VisualStudio
     

    Attached Files:

  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    7,004
    And what would that error be?

    Please post the error you get in the console in full. But not with a screenshot, as text. Select a line, Ctrl+C, then Ctrl+V here.
     
    Bunny83 likes this.
  3. x267Unity

    x267Unity

    Joined:
    May 5, 2024
    Posts:
    5
    Assets\Scripts\TerrarianGeneration.cs(62,40): error CS1002: ; expected
    there is one, but I don't think it's what you need.
     
  4. x267Unity

    x267Unity

    Joined:
    May 5, 2024
    Posts:
    5
    let's just forget about that missing semicolon). Closed