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

"The associated script can not be loaded"

Discussion in 'Editor & General Support' started by ZanOlsena, Sep 12, 2020.

  1. ZanOlsena

    ZanOlsena

    Joined:
    Apr 5, 2020
    Posts:
    3
    Pretty much what the title says. I loaded up my project yesterday to work on it and noticed I had an odd error with a reference that should be working fine. Upon further exploration, Unity will load none of my scripts and all I get is an error like the one in the photo I attached. They all load fine in Visual Studio and show as being error free. I've tried re-importing them, deleting .meta files, and almost every other fix I could find but nothing has worked. I believe this to be problem with Unity itself rather than anything I've done, as the project was working just fine the last time I loaded it up before this.

    Thanks in advance for any help.
     

    Attached Files:

  2. Vryken

    Vryken

    Joined:
    Jan 23, 2018
    Posts:
    2,106
    Make sure the file name of the script matches the name of the class: "PlayerMovement.cs".
     
  3. ZanOlsena

    ZanOlsena

    Joined:
    Apr 5, 2020
    Posts:
    3
    It does, all of them do in fact.