Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Error CS0101 and CS0111

Discussion in 'Scripting' started by Kritzlof, Jun 7, 2023.

  1. Kritzlof

    Kritzlof

    Joined:
    May 1, 2019
    Posts:
    2
    Hi!
    I need to update a game we developed a few years ago. I'm a graphical artist myself and unfortunately I'm unable to get the help of the programmer that handled the code. For starters just need to be able to open the game up in unity again, but I'm getting 77 compiling errors that I'm not sure how to solve. There was another thread in here about error cs0111, but I didn't quite understand how to solve it.

    I understand this might be a difficult thing to fix, but if someone can help point me in the right direction that would be great. Thanks a lot in advance.
     

    Attached Files:

  2. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    729
    Do you have duplicated scripts in the project?

    "The namespace already contains a definition for ... " means that a class with that name already exists in the project.
     
  3. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,718
    Screenshot 2023-06-07 at 9.57.17 AM.png Very clearly just a case of duplicated scripts / classes.
     
  4. Kritzlof

    Kritzlof

    Joined:
    May 1, 2019
    Posts:
    2
    Ok, thanks a lot!
    So do I just try to find the mentioned scripts and delete them?
     
  5. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    729
    Backup first!
     
    mopthrow likes this.